• Hi Guest!

    We are extremely excited to announce the release of our first Beta1.1 and the first release of our Public AddonKit!
    To participate in the Beta, a subscription to the Entertainer or Creator Tier is required. For access to the Public AddonKit you must be a Creator tier member. Once subscribed, download instructions can be found here.

    Click here for information and guides regarding the VaM2 beta. Join our Discord server for more announcements and community discussion about VaM2.
  • Hi Guest!

    VaM2 Resource Categories have now been added to the Hub! For information on posting VaM2 resources and details about VaM2 related changes to our Community Forums, please see our official announcement here.
Xtoys Connect 2

Plugins + Scripts Xtoys Connect 2

Download [<1 MB]
  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:

1775928128827.png

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.
1775928342315.png


1775928403251.png

1775928424824.png


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.
1775928600821.png


To receive triggers from Xtoys script you need to input in the attached webhook blocks the same names as in the plugin.
1775928829486.png
1775929140679.png


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.
React to this content...

Share this resource

Back
Top Bottom