Custom Code Write custom Python code to execute.
Click an action in the list of actions to select it. Then, click Edit.
In the following example, Custom Code is selected for edit.
The Python Script window displays.
Enter custom Python script to execute at run time. When finished, click the Okay button below the code window to save changes (or click the Cancel button to exit without saving changes). For more information about writing Python code, see Editing a code-only Python script.