Loading...
This chapter gives an overview of the members available for the OSC Table.
Please read the chapter "OSC Table" if you would like to know how to add and use it. As explained in the topic"Object and Member Notation (dot syntax)", all kinds of objects can be addressed in the scripting language by using their members which set (or return if applicable) properties or methods of that object. Please refer to the chapter "Script Language" for more details about scripting in general.
Project.OSC_Table(deviceName or ID) |
Example: Alternative Example: |
This gives access to all further members of the device "OSC_Table" from the Configuration dialog. Using the Project object is an alternative to addressing the device directly by entering its name. The Project object allows to address the device through its name or ID. Substituting the ID with a dynamic variable allows automation. Actions can be performed on many devices of the same type simultaneously, e.g. by using for-loops: |
OSC_TableName.Disable |
Example: Alternative Example: |
This disables the according OSC Table in the Configuration dialog as if the "Enable" check box in the window was unchecked. Use the .Enable member to reverse this command. |
OSC_TableName.Enable |
Example: Alternative Example: |
This enables the according OSC Table in the Configuration dialog as if the "Enable" check box in the window was checked. Use the .Disable member to reverse this command. |
OSC_TableName.GetAliasNames |
Example: Alternative Example: |
This member returns the alias names of all stored addresses from the according OSC Table as a list. The result could look as follows: ["page", "fader1", "fx"] You could also write it into a Widget, e.g. a DropDown List via the script and the variable "vlist" that was assigned above: DropDownList1.SetItemsFromArray("vlist") |
OSC_TableName.IsEnabled |
Example: Alternative Example: |
This member returns the status of the check box "Enable" from the Configuration dialog. The result, a Boolean value (or string), is "True" if the device is enabled and "False" if it is currently not enabled. You could also write it into a Widget, e.g. a Label via the script: Label1.Text = OSC_Table1.IsEnabled |
OSC_TableName.Send(aliasName,OSC TCP / UDP deviceName,value) |
Example: Alternative Example: |
This sends the value "1" to the OSC address stored in OSC Table_1 under the alias "page". The command uses the connection from the OSC TCP device named "OSC_TCP1". Keep in mind that the value type must correspond to the defined type. When you defined in the OSC Table that an integer value needs to be sent, it will not work to send a string value. You might need to convert a value first with the available data type specific members, e.g.: In case you defined more than one value in an Alias, wrap the individual values in a list, e.g.: Literal text should always be enclosed in either single or double quotation marks; otherwise, the text is handled like a variable. Alternatively, you can also send a message via the commands: OSC_TCP.Send or .SendRaw |