MCPcopy Create free account
hub / github.com/WarmUpTill/SceneSwitcher / PerformAction

Method PerformAction

plugins/base/macro-action-studio-mode.cpp:43–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

41}
42
43bool MacroActionSudioMode::PerformAction()
44{
45 switch (_action) {
46 case Action::SWAP_SCENE:
47 obs_frontend_preview_program_trigger_transition();
48 break;
49 case Action::SET_SCENE: {
50 auto s = obs_weak_source_get_source(_scene.GetScene());
51 obs_frontend_set_current_preview_scene(s);
52 obs_source_release(s);
53 break;
54 }
55 case Action::ENABLE_STUDIO_MODE:
56 enableStudioMode(true);
57 break;
58 case Action::DISABLE_STUDIO_MODE:
59 enableStudioMode(false);
60 break;
61 default:
62 break;
63 }
64
65 return true;
66}
67
68void MacroActionSudioMode::LogAction() const
69{

Callers

nothing calls this directly

Calls 2

enableStudioModeFunction · 0.85
GetSceneMethod · 0.80

Tested by

no test coverage detected