2.3 PyOrigin Examples

The following pages contain Python examples that demonstrate how to communicate with the different areas of Origin.

There are more examples that are installed with Origin, under the Origin sample folder(<Origin EXE Folder>\Samples\Python).

To run the .py files

The example *.py files can be run directly using the run -pyf command option

To run and view the Python File Attached to Origin Project

The Origin example project files with attached Python files can be run by clicking the custom buttons provided.

When you open the OPJ file, you will find the Control Panel with buttons for viewing the Python code or executing the *.py files. Alternatively, you could open the Code Builder (View: Code Builder or Alt + 4), and browse to the Project folder in Workspace panel to access the attached Python file.

This section covers the following topics: