Trying to run the script -- tried importing the macro, after loading the script into the Script tool in OBS.
Not seeing anything work.
Just in case others are wondering what the issue was.
The new zoom level will only be applied when zooming back out and back in first.
Changing the zoom level while already zoomed in is not supported by the script at the moment.
how would you get it to switch back to game capture when an eligible output is detected? There's no option for "has output"
You can simply inverse the condition by using "if not" instead of "if", or "and not" instead of "and", etc. .
I imagine because when a scene isn't loaded it'll never have output.
I
think OBS will automatically "disable" the Display source it if not used by any active scene. (Preview or Program)
I don't really know for sure how the Game Capture source behaves in that regard, but I assume it might be similar.
(You could open a "projector" of the source to work around that, but that defeats the purpose of what you are trying to do)
So relying on "has output" might not make sense for what you are trying to achieve.
You might be able to check if the source output has / has not changed in a while instead.
But seeing as your intention is to save resources this might also not really be a good approach, as this can be a rather expensive operation.
Unfortunately, at the moment I don't really have any obvious solution, which would help you save resources.
Hi,
@Warmuptill .
I noticed one problem: if you use a transition between scenes, your plugin changes the transition time set in the OBS transition panel to the value specified in the applied macro. And after that, all transitions (even those launched manually) begin to use the new value, which is not good.
The problem will be solved if after using the macro, the transition time value in the OBS panel automatically returns to the state that was before.
I can confirm that the setting pointed out by Aaron should do the trick :)
When you only check "Set transition overrides" the settings in the "Scene Transitions" dock will not be touched.