Opus Objects

Below are two examples of how to identify the object name and the function name in a script. The Help page for each function provides at least one example of how to correctly enter the object name and function

myImage.Show()
button_1.Hide()

Note:
If the name of the object in the Organiser contains spaces, or any other character not allowed in script variable names e.g. button 1, the spaces must be replaced by the _ character e.g. button_1 or the object will not be recognised by OpusScript.

Where the function used returns a value which you want to use or evaluate, you need to assign this value to a variable of your choosing.

var currentPosition=0

currentPosition=myImage.GetPosition()

Close