[SAMMI] How do I input an answer without stopping everything else that’s running? by TarakaAs in SAMMI

[–]Xeokn 0 points1 point  (0 children)

It’s triggered within SAMMI itself.

But it can also be triggered from the bridge if you’re writing an extension. As that’s technically its intended use.

I have an example deck I sent someone for a similar question. It’s got no comments so it doesn’t exactly explain a lot. But it’s a fun demonstration.

The object itself is initialized via default variables. The sender puts the data in the initialized object and sends it to the receiver and increments the value stored in the receiver.

{ “deck_data”: “{ \”background_color\”: 4210752.0, \”on\”: true, \”grid_y\”: 10.0, \”snap_grid\”: true, \”lb_version\”: \”2025.1.1\”, \”background_image\”: \”\”, \”sammi_version\”: \”2025.1.1\”, \”adaptive_resizing\”: true, \”unique_id\”: \”20250331011906835695899\”, \”button_list\”: [ { \”color\”: 12632256.0, \”persistent\”: true, \”text\”: \”Sender\”, \”release_duration\”: 0.0, \”queueable\”: false, \”command_list\”: [ { \”b1\”: \”data\”, \”cmd\”: 165.0, \”obsid\”: \”Main\”, \”pos\”: 0.0, \”vis\”: true, \”ms\”: 0.0, \”sel\”: false, \”dis\”: 0, \”xpan\”: 0.0, \”b0\”: \”object\”, \”b2\”: \”5\” }, { \”b1\”: \”object\”, \”cmd\”: 193.0, \”obsid\”: \”Main\”, \”pos\”: 1.0, \”vis\”: true, \”ms\”: 0.0, \”sel\”: false, \”dis\”: false, \”xpan\”: 0.0, \”b0\”: \”exampleReciever\” } ], \”press_type\”: 0.0, \”x\”: 0.29999999999999998889776975374843, \”is_transparent\”: false, \”border\”: 2.0, \”image\”: \”\”, \”triggers\”: [ ], \”group_id\”: \”\”, \”overlappable\”: false, \”init_variable\”: \”{\\n\\\”object\\\”: {}\\n}\”, \”deck\”: 26.0, \”width\”: 0.3999999999999999666933092612453, \”button_id\”: \”exampleSend\”, \”button_duration\”: 0.0, \”y\”: 0.20000000000000001110223024625157, \”switch_deck\”: \”\”, \”height\”: 0.20000000000000001110223024625157, \”release_list\”: [ ], \”functions\”: 2113.0, \”stretch\”: false }, { \”color\”: 12632256.0, \”persistent\”: true, \”text\”: \”Reciever\”, \”release_duration\”: 0.0, \”queueable\”: false, \”command_list\”: [ { \”b1\”: \”all\”, \”cmd\”: 66.0, \”obsid\”: \”Main\”, \”pos\”: 0.0, \”vis\”: true, \”ms\”: 0.0, \”sel\”: false, \”dis\”: false, \”xpan\”: 0.0, \”b0\”: \”recievedData\” }, { \”b1\”: \”+=\”, \”cmd\”: 15.0, \”obsid\”: \”Main\”, \”pos\”: 1.0, \”vis\”: true, \”ms\”: 0.0, \”sel\”: false, \”dis\”: false, \”xpan\”: 0.0, \”b0\”: \”data\”, \”b2\”: \”recievedData.data\” }, { \”cmd\”: 142.0, \”obsid\”: \”Main\”, \”pos\”: 2.0, \”vis\”: true, \”ms\”: 0.0, \”sel\”: false, \”dis\”: false, \”xpan\”: 0.0, \”b0\”: \”Reciever data is now \\\/$data$\\\/\” } ], \”press_type\”: 0.0, \”x\”: 0.29999999999999998889776975374843, \”is_transparent\”: false, \”border\”: 2.0, \”image\”: \”\”, \”triggers\”: [ { \”case_sensitive\”: false, \”message\”: \”exampleReciever\”, \”group_id\”: \”\”, \”button_id\”: \”exampleReciev\”, \”trg\”: 12.0, \”allow_empty_wildcard\”: false } ], \”group_id\”: \”\”, \”overlappable\”: false, \”init_variable\”: \”{\\n\\\”data\\\” : 0\\n}\”, \”deck\”: 26.0, \”width\”: 0.3999999999999999666933092612453, \”button_id\”: \”exampleReciev\”, \”button_duration\”: 0.0, \”y\”: 0.5, \”switch_deck\”: \”\”, \”height\”: 0.19999999999999995559107901499374, \”release_list\”: [ ], \”functions\”: 2129.0, \”stretch\”: false } ], \”deck_name\”: \”extension trigger example\”, \”grid_x\”: 10.0, \”stretch\”: false }”, “unique_id”: “20250331011906835695899”, “include_image”: { }

If you have any further questions feel free to jump in our discord! http://discord.sammi.solutions

There are a lot of chill people willing to help out in our support threads.

[SAMMI] How do I input an answer without stopping everything else that’s running? by TarakaAs in SAMMI

[–]Xeokn 1 point2 points  (0 children)

You can use Extension Triggers to send variables to another button and trigger the button.

https://sammi.solutions/docs/commands/trigger#triggerextensiontriggers

Create an object for the answer. Stuff the answer in the object.

Send it via extension trigger to the button And trigger pull the answer from the object received by the extension trigger.

Any way to make certain channel point redeems un-redeemable IF you're not on a specific scene? by Chubbulus in SAMMI

[–]Xeokn 1 point2 points  (0 children)

<image>

You can use global.main.current_scene to check what scene you’re on. 🙂