动作参考
Event Trigger 轨道在时间轴的特定时间触发离散的 OBS 动作。本页列出所有可用动作(EOBSSequencerAction),按其类别(EOBSSequencerActionCategory)分组。
有关这些动作在分段边界处的行为(即时型与状态型、退出/还原),请参阅 轨道族 → 分段类型 和 高级主题 → 退出动作。
支持的动作(40+)
各类别内容概览:
| 类别 | 动作 |
|---|
| 录制 | 开始、停止、暂停、恢复、切换暂停、分割文件、创建章节 |
| 推流 | 开始、停止、切换、发送字幕 |
| 场景 | 切换场景、设置来源可见性 |
| 音频 | 静音、取消静音、切换静音、设置音量 |
| Replay Buffer | 开始、停止、切换、保存 |
| 虚拟摄像头 | 开始、停止、切换 |
| 转场 | 设置转场、设置时长 |
| 来源 | 设置文本、设置浏览器 URL、设置图像文件、设置媒体文件、设置颜色 |
| 滤镜 | 设置滤镜启用状态、设置滤镜设置 |
| 媒体输入 | 触发动作(播放/暂停/停止/重启)、设置游标位置 |
| 工作室模式 | 启用/禁用、设置预览场景、触发转场 |
| 截图 | 保存截图 |
按类别分组的动作表
下表列出每个 EOBSSequencerAction 枚举值及其在 UI 中的显示名称。
录制
| 枚举值 | 显示名称 |
|---|
StartRecord | Start Recording |
StopRecord | Stop Recording |
PauseRecord | Pause Recording |
ResumeRecord | Resume Recording |
ToggleRecordPause | Toggle Record Pause |
SplitRecordFile | Split Record File |
CreateRecordChapter | Create Record Chapter |
推流
| 枚举值 | 显示名称 |
|---|
StartStream | Start Streaming |
StopStream | Stop Streaming |
ToggleStream | Toggle Streaming |
SendStreamCaption | Send Stream Caption |
场景
| 枚举值 | 显示名称 |
|---|
SwitchScene | Switch Scene |
SetSceneItemEnabled | Set Source Visibility |
场景项目
| 枚举值 | 显示名称 |
|---|
SetSceneItemPosition | Set Scene Item Position |
SetSceneItemScale | Set Scene Item Scale |
SetSceneItemRotation | Set Scene Item Rotation |
SetSceneItemCrop | Set Scene Item Crop |
音频
| 枚举值 | 显示名称 |
|---|
MuteInput | Mute Input |
UnmuteInput | Unmute Input |
ToggleInputMute | Toggle Mute |
SetVolume | Set Volume |
Replay Buffer
| 枚举值 | 显示名称 |
|---|
StartReplayBuffer | Start Replay Buffer |
StopReplayBuffer | Stop Replay Buffer |
ToggleReplayBuffer | Toggle Replay Buffer |
SaveReplayBuffer | Save Replay Buffer |
虚拟摄像头
| 枚举值 | 显示名称 |
|---|
StartVirtualCam | Start Virtual Camera |
StopVirtualCam | Stop Virtual Camera |
ToggleVirtualCam | Toggle Virtual Camera |
转场
| 枚举值 | 显示名称 |
|---|
SetCurrentTransition | Set Transition |
SetTransitionDuration | Set Transition Duration |
来源
| 枚举值 | 显示名称 |
|---|
SetTextSourceText | Set Text Source Text |
SetBrowserSourceUrl | Set Browser Source URL |
SetImageSourceFile | Set Image Source File |
SetMediaSourceFile | Set Media Source File |
SetColorSourceColor | Set Color Source Color |
滤镜
| 枚举值 | 显示名称 |
|---|
SetSourceFilterEnabled | Set Filter Enabled |
SetSourceFilterSetting | Set Filter Setting |
媒体输入
| 枚举值 | 显示名称 |
|---|
TriggerMediaInputAction | Media Input Action |
SetMediaInputCursor | Set Media Cursor |
媒体输入动作接受 play、pause、stop 或 restart 作为操作动词。
工作室模式
| 枚举值 | 显示名称 |
|---|
SetStudioModeEnabled | Set Studio Mode |
SetCurrentPreviewScene | Set Preview Scene |
TriggerStudioModeTransition | Trigger Studio Transition |
截图
| 枚举值 | 显示名称 |
|---|
SaveSourceScreenshot | Save Screenshot |
Sequencer 菜单结构
所有 OBS 轨道均归入同一个”OBS”子菜单:
+Track → OBS ▶
├── Event Trigger Fire discrete OBS actions at specific times
├── Media Sync Synchronize OBS media with Sequencer timeline
├── Continuous State ▶
│ ├── Audio ▶
│ │ ├── Mute State
│ │ └── Monitor Type State
│ ├── Filters ▶
│ │ └── Filter Enabled State
│ ├── Scene ▶
│ │ ├── Blend Mode State
│ │ ├── Lock State
│ │ └── Visibility State
│ ├── Studio Mode ▶
│ │ └── Studio Mode State
│ └── Transitions ▶
│ └── Transition State
└── Keyframeable ▶
├── Audio ▶
│ ├── Balance
│ └── Volume
├── Filters ▶
│ └── Filter Setting
├── Media ▶
│ └── Media Cursor
├── Scene ▶
│ └── Transform
├── Sources ▶
│ └── Color Source
└── Transitions ▶
└── Transition Duration
在 C++ 中查询动作
动作元数据(类别、触发类型、必需参数、UI 标签)可通过注册表获取:
#include "Sequencer/InhyeongOBSSequencerTypes.h"
// Look up metadata for a single action
const FOBSSequencerActionMetadata* Meta = FOBSSequencerActionRegistry::GetMetadata(EOBSSequencerAction::SwitchScene);
if (Meta && Meta->bRequiresTargetName)
{
// This action needs a target name (scene name)
}
// Get all actions in a category
TArray<EOBSSequencerAction> RecordingActions =
FOBSSequencerActionRegistry::GetActionsForCategory(EOBSSequencerActionCategory::Recording);
有关运行时类的更多信息,请参阅 高级主题 → C++ 访问。