Running the Script

 
 
 

Embedded

To run a python script in the Composite embedded Python interpreter, do the following:

  1. Locate the script in a Composite "File Browser" ("Ctrl-I" (Windows and Linux) or “Cmd+ I” (Mac OS) to bring up a floating browser for example). Note that in order for Composite to recognize a file as a Python script, it must have the “.py” extension. Composite identifies Python scripts with a thumbnail that represents the Python logo:
  2. Right-click on the script.
  3. To run the script without any parameter choose “Run”.
  4. To run the script with parameters choose "Run with Parameters" and type in the script arguments as you would in a shell.

Externally

WarningTo run a Composite Python script, it is strongly recommended to use the Python distribution shipped with Composite (deployed under the Composite installation directory). Running a Composite Python script with any other Python distribution might not work properly and is very likely to result in a crash.

On Windows:

  1. <INSTALL_DIR>/program/python.exe myScript.py

On Linux

  1. <INSTALL_DIR>/bin/python myScript.py

On Mac OS

  1. <INSTALL_DIR>/Contents/Frameworks/Python.framework/Versions/Current/bin/python myScript.py

Creative Commons License Except where otherwise noted, this work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License