Hello, I'm using a Macro with a Websocket Request action, I want to get the transform from one source and set it to another.
So far I managed to make work GetSceneItemTransform and SetSceneItemTransform requests by themselves... but I have no idea on how to link them so the output result from the first is the input of the second. Does anyone know?
Since this thread is specifically for the Adv. SS plugin, it'd be good to have an in-plugin solution, but the way that I've done it before was with a short python script. Connect and register itself to the appropriate sockets and events, then a short one-liner for each bit of logic that needs to be done with those events. Since I start that rig from a script anyway, it's completely transparent and "just works".
I think I'll keep doing it that way, at least for now, mostly for the latency. WebSockets aren't scanned/polled like this plugin is. They happen immediately on each event. What I'm doing with it requires quite low latency, and I'd rather not scan the plugin that fast.
(Coordinating two copies of OBS as if I were controlling both simultaneously, but smarter than assigning the same global hotkey to both. So I control one copy directly, and the other follows via that script and its two WS connections. When the master changes scenes, run a set of regex'es on the new name, and change the slave to the one that matches.)
If Adv. SS were to respond immediately to WS events, and not wait for the next scan, then I might be tempted to move that logic into a macro or two.
Of course, it wouldn't hurt to have the other events happen immediately as well, like media status, audio volume, etc., but that's getting into some unnecessary CPU load for most people, and is easily approximated by a short scan interval if you're not doing much else with it.