> ## 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.

# create_script

#### Model.create\_script(name, source=None, active=True, uptodate=False, update\_mode=ScriptUpdateMode.ON\_TRIGGERS)

Creates a script object, which allows executing custom Python code.

* **Parameters:**
  * name: The name of the script.
  * source: The code to be executed, as a string.
  * active: If False, the script will not be executed.
  * uptodate: Whether the script currently needs to be executed.
  * update\_mode: Defines which changes cause the script to become.
    : out-of-date. Available options: `manual` (run only when manually
    triggered), `on_triggers` (run when a parameter or the script
    itself changes), and `always` (run with every update).
* **Returns:**
  The created script object.
