Skip to reading
PCA Script Programming

toggle_rgb_string()

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page

Toggle Rgb String | Action ID: ToggleRGBString

Toggle an authored RGB light string, optionally writing its state to a variable.

Source table from toggle_rgb_string(), page 157
Option key / fieldMeaning and accepted inputDefault
Entity entityIdChoose a scene entity ID.Blank
Variable variableText.Blank

Timing. The call waits for its runtime routine to return; no additional completion wait is promised by this schema.

Code example
toggle_rgb_string({"entityId": "archive_door", "variable": "powered"})

In use. Turn decorative bulbs on after a celebration begins. The bulbs, spacing and light settings belong to the RGB string setup; this action does not create a new string from an ordinary mesh.

Page 157 of 357Permalink
Go to page