21.4. Sharing Scope

The Script Execution Scope property, illustrated below, enables you to share the scope in which the script runs between two or more python code objects.

As shown below, let’s say you set the script execution scope property to "shared_scope" for two python code objects. Then you can define variables in one global scope and then use them in the other. The value of some_other_val in the second object will effectively be 20 because the scopes are shared between the two python objects.

Script for Python Object 1

Script for Python Object 2