Stair CHOP | |
---|---|
The stair CHOP will generate an increasing or decreasing step waveform. The number of stairs, stair height and vertical offset can be specified. As well, this CHOP illustrates how to put in "handles" via the CHOP_Handle class. | |
CHOP_Stair.C CHOP_Stair.h |
Source for the stair CHOP |
CHOP_stair.icon | Icon for the stair CHOP |
Puppet/FifthGlove CHOP | |
These two CHOPs are examples of serial port devices. They use the
UT_Serial class to connect and communicate with the serial ports.
The puppet and 5thglove CHOPs demostrate 2 different approaches for
interfacing with devices. The Puppet CHOP contains an example of how to program a realtime CHOP for a device (it uses CHOP_Realtime)... besides just updating the samples, the developer is responsible for detecting parameter changes to the CHOP (like the port, BAUD rate, active, etc) that the user makes while the device is streaming data. This makes the CHOP a little more complicated to write. The FifthGlove CHOP reads device data as it comes in realtime, it is derived directly from CHOP_node. It is slightly easier to write, as it only displays the most current value of the device. It is not as efficient, however, since all the parms and clip have to be re-evaluated each cook. Both device CHOPs have calibration capabilities that can be saved and recalled over multiple sessions. This isn't necessary to implement, but can save you some time in the long term.
|
|
CHOP_FifthGlove.C CHOP_FifthGlove.h |
Source for the fifth glove CHOP |
CHOP_Puppet.C CHOP_Puppet.h |
Source for the puppet CHOP |
The script will first compile the sample source code, then install the icons so that Houdini will find them. By default, everything is installed in your home directory.