Get.list.variables:

Return the list of variables with properties.
Variables can be organized with folders.

Property Description
name the name of the variable
objectType type of object, here “variable” or “folder”
variableType type of variable. Can be : int, float, double, string, bool, vec2, vec3, vec4, color or folder
value curent value of the variable
uiColor color of the variable
uuid unique uuid to control the variable

Example:

{"jsonrpc":"2.0","method":"get.list.variables","id": 1}

Get.object.variable:

Return the properties of one variable.
You can use one of the following parameters:

Param B1
uuid unique uuid to control the variable
name name of the variable . if several variable with same name, it will return the first one
Property Description
name the name of the variable
objectType type of object, here “variable” or “folder”
value curent value of the variable
variableType type of variable. Can be : int, float, double, string, bool, vec2, vec3, vec4, color or folder
uiColor color of the variable
uuid unique uuid to control the variable

Example:

{"jsonrpc":"2.0","method":"get.object.variable", "params": {"uuid": "{06db974b-8811-4dc8-ac41-5fbf4c17634d}"}}

Set.property.variable:

Use this command to set a variable property.

It is possible to set these properties:

Property Description
name the name of the variable
value the value
uiColor color of the variable

Example:

{"jsonrpc":"2.0","method":"set.property.variable", "params":{"uuid":"{06db974b-8811-4dc8-ac41-5fbf4c17634d}","property":"value","value":"#55aaff"}}
{"jsonrpc":"2.0","method":"set.property.variable", "params":{"uuid":"{d526addd-010f-4566-8db8-8a8456aad288}","property":"value","value":[100,200]}}

Need more help with this?
Don’t hesitate to contact us here.

Thanks for your feedback.