> ## Documentation Index
> Fetch the complete documentation index at: https://developer.synopsys.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Script

### *class* compolyx.Script(name, \*, parent=None, source=None, active=True, uptodate=False, update\_mode=ScriptUpdateMode.ON\_TRIGGERS)

Represents user-defined scripts operating on the input parameters.

### Attributes

| Name | Description |
| - | - |
| [`Script.active`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.active) | Whether the script should run or not. |
| [`Script.enabled`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.enabled) | Indicates whether the object is enabled. |
| [`Script.is_dict_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.is_dict_item) | Indicates whether the object is an item in a dictionary. |
| [`Script.is_list_item`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.is_list_item) | Indicates whether the object is an item of a list. |
| [`Script.link_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.link_path) | Root path of the current node in the tree for links to this object. |
| [`Script.name`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.name) | Name of the object. |
| [`Script.parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.parent) | Parent object in the tree. |
| [`Script.root_path`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.root_path) | Root path of the current node in the tree. |
| [`Script.source`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.source) | Source code of the user-defined script. |
| [`Script.status`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.status) | String status indicating if the object is up-to-date. |
| [`Script.status_changed`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.status_changed) | Specifies if the object has changed, for the purposes of notifying workbench. |
| [`Script.update_mode`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.update_mode) | Defines which changes cause the script to become out-of-date. |
| [`Script.uptodate`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.uptodate) | Whether the script execution is up to date. |

### Methods

| Name | Description |
| - | - |
| [`Script.find_parent`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.find_parent)(type) | Steps up the tree and returns the first parent with given type. |
| [`Script.run`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.run)() | |
| [`Script.serialize`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.serialize)() | Serialize to Python string. |
| [`Script.source_default`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.source_default)() | |
| [`Script.update`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.update)() | |
| [`Script.visit`](https://developer.synopsys.com/docs/acp/acp-in-app-scripting-api/_autosummary/compolyx.Script.visit)(visitor) | Walk through the tree and let the visitor perform action on every descendant node. |
