Requires 3rd party executable files or external scripts.
This plugin allows you send and receive data from Xtoys script via local websocket.
For example you can control your toys from inside the scene or trigger something in the scene with coyote button or motion sensor.
Should work much faster and more reliable then the first. And easier to setup.
Doesn't require external app.
I'll leave the first version cause it allows you to connect to Xtoys running on a different pc or phone. This one only works on the same pc.
Place the plugin on some object.
You will need Xtoys script with Local Webhook block:
Disable Webhook Id and SSL. Set the same port in plugin and script.
To send trigger to Xtoys script you need to send it's name to the sendTrigger value of the plugin via VAM trigger system and create a block with the same name in Xtoys script to receive it.
To send sliders data you need to create "sliders" block in the script. Their values are passed to the attached blocks via {trigger-sl1}, {trigger-sl2}, etc.
To receive triggers from Xtoys script you need to input in the attached webhook blocks the same names as in the plugin.
If it's lagging or buffering try changing refresh rate and throttling settings. (There seems to be some small spikes from time to time but I can't figure it out. Might be server side)
If you already have Xtoys script for the old version you can just add local webhook block, change blocks with private webhook to local and delete private.
For example you can control your toys from inside the scene or trigger something in the scene with coyote button or motion sensor.
Should work much faster and more reliable then the first. And easier to setup.
Doesn't require external app.
I'll leave the first version cause it allows you to connect to Xtoys running on a different pc or phone. This one only works on the same pc.
Place the plugin on some object.
You will need Xtoys script with Local Webhook block:
Disable Webhook Id and SSL. Set the same port in plugin and script.
To send trigger to Xtoys script you need to send it's name to the sendTrigger value of the plugin via VAM trigger system and create a block with the same name in Xtoys script to receive it.
To send sliders data you need to create "sliders" block in the script. Their values are passed to the attached blocks via {trigger-sl1}, {trigger-sl2}, etc.
To receive triggers from Xtoys script you need to input in the attached webhook blocks the same names as in the plugin.
If it's lagging or buffering try changing refresh rate and throttling settings. (There seems to be some small spikes from time to time but I can't figure it out. Might be server side)
If you already have Xtoys script for the old version you can just add local webhook block, change blocks with private webhook to local and delete private.
Requires 3rd party executable files or external scripts.