Basic Data Types
Getting and Setting Values to Parameters
Inside any scriptable location in Grid Studio, you can have access to values of a parameter from an object via the expression address. To find out the expression address of a specific parameter, right click on it from the inspector, and in the secondary menu, choose Copy Expression Address.

The expression address to that specific parameter is now copied to the clipboard and can be pasted into any location. It will be in a format like this: sp.Tracker1.coordinates.position.value
This would be the variable that can be used to have access to the value of that parameter.
Just like any variable in python, you can then assign values to this parameter by a statement like this: sp.Tracker1.coordinates.position.value = [1, 0, -1]
Data Types
Grid Studio supports all of the standard variable types from Python. So the typical ones like string, int, float, list, tuple, dict, and bool are all supported. For details on how to work with the various data type in Python, you can refer to: Python Data Types
There are also other data types specific to Grid Studio.
Color
sp.Color.value is a list of 4 floats [red, green, blue, alpha]
For example if you would like to set the tracker's display color to be yellow:
sp.Tracker1.display.itemColor.value = [1,1,0,1]
Last updated