-
Notifications
You must be signed in to change notification settings - Fork 124
ExamplesOpsIntro
Ben Toogood edited this page Aug 16, 2013
·
2 revisions
The trick to getting Ops to execute is where they're installed. The environment variable which Cortex's ClassLoader class uses to find Ops is:
$IECORE_OP_PATHS
This is a colon-delimited path list and under each path the Op must be explicitly versioned and installed in it's own directory according to:
<PATH>/<OP>/<OP>-<VERSION>.py
For example:
myOps/
|-- meshOp
| `-- meshOp-1.py
`-- imageProcessingOp
|-- imageProcessingOp-1.py
`-- imageProcessingOp-2.py
Nesting is also possible:
myOps/
|-- categoryA
| `-- opA
| `-- opA-1.py
| `-- opB
| `-- opB-1.py
|-- categoryX
| `-- opM
| `-- opM-1.py
| `-- opN
| `-- opN-1.py
- Introduction
- General Functionality
- Data Handling
- Parameters and Ops
- Point Primitives
- Mesh Primitives
- Image Primitives
- Procedurals
- Cortex & Python
- Cortex & Maya
- Cortex & Houdini