Deborah R. Fowler
Creating a Python Sop (can also be used for vex sop)
Updated Oct 6 2013
When you create a
python sop the information is stored in an .otl (digital asset)
file.
1. File->New Operator Type – brings up a dialogue box.
- name it appropriately ie. fields Operator Name and Label
- Operator Style must be set to Python Type
- Network Type must be set to Geometry Operator
- Save To Library should point to your local folder (this is where it will store the otl!)
2. Hit Accept – an Edit Operator Type Properties window
appears
- In the Basic tab be sure to set
Minimum Inputs and Maximum Inputs to zero or the number of
inputs you intend to use in the node
set the Label to be something unique (maybe include your name)
- In the Parameters tab set up
variables
- In the Code tab place the script
(python code) to be run when sop cooks
3. Throw down a geo node
- bring in a python node (from your digital asset – hit tab and select the digital asset).
Adding callback scripts
In addition, if you want to use the script
section as opposed to or in addition to, the code section
you can do the following
See my pdf
for step by step screensnaps. An
example hip files exists here
with otl
here.