Opus provides two methods of adding a Script to an Opus Pro publication:
Add a Script Object to a page – this is the most common option if you write a large script containing several user-defined functions.
Add a Script action to an object on a page – this is often used when you want to write only a few lines of code or more commonly when you want to call a function in a Script Object.
Deciding if you should use a Script action or Script Object will come with experience and will be decided by the task that you want to perform. However, in practice, the description above is true – Script Objects are used to write larger scripts containing many user-defined functions and Script actions are used to call functions in a Script Object. For a detailed description – see Script Objects versus Script Actions for more information.
Note:
For a full description on how to add a Script Object or Script action to a page or object in your publication, see the links below for more information.