hi, I'm trying to handle sceneprojector by code, I have three monitors, I've inserted a piece of code that triggers events, in each event I want to see on the monitor one or two, what's next. OBS controls this by opensceneprojector ()
void OBSBasic :: OpenSceneProjector ()
{
int monitor = sender () -> property ("monitor"). toInt ();
OBSScene scene = GetCurrentScene ();
if (! scene)
return;
OpenProjector (obs_scene_get_source (scene), monitor, false);
}
Changing monitor by monitor number works fine
-> OpenProjector (obs_scene_get_source (scene), 2, false);
I want to change by scene name, something like this
OpenProjector ('scene 1', 1, false);
OpenProjector ('scene 3', 2, false);
I could not find a way to change by the scene name, any idea how to do it?
Thanks
void OBSBasic :: OpenSceneProjector ()
{
int monitor = sender () -> property ("monitor"). toInt ();
OBSScene scene = GetCurrentScene ();
if (! scene)
return;
OpenProjector (obs_scene_get_source (scene), monitor, false);
}
Changing monitor by monitor number works fine
-> OpenProjector (obs_scene_get_source (scene), 2, false);
I want to change by scene name, something like this
OpenProjector ('scene 1', 1, false);
OpenProjector ('scene 3', 2, false);
I could not find a way to change by the scene name, any idea how to do it?
Thanks