Custom Object Sample Code


This directory contains sample code for generating custom objects. Refer to the toolkit documentation for more details.

Lamp object
The lamp object behaves exactly as a normal light does. There are really no source code changes made to the object. OBJ_Lamp.C simply installs a duplicate of the standard light object into a object table. The duplicate has the name "lamp" instead of "light", and as a result can have a different user interface (icon/parameter/initialization/geometry). The lamp object is a simplification of the normal light object. The parameters that affect the cone-light aspects of the normal light have been removed from the UI.
OBJ_Lamp.C
OBJ_Lamp.h
Source code for lamp object
OBJ_lamp.icon icon for lamp object
deflamp.bgeo Default geometry for lamp objects
lamp Customized Parameter UI
lamp.cmd Initialization script
Shake Object
The shake object is based on the standard geometry object. It adds a random jitter to the standard transform that is computed by a normal geometry object.
OBJ_Shake.C
OBJ_Shake.h
Source code for shake object
OBJ_shake.icon icon for shake object
shake Customized Parameter UI

Install Script

sample_install.sh is a sample install script.

The script will first compile the sample source code files and installs the resulting DSOs in the appropriate directory. It then installs the icon files, parameter dialog UI files, and initialization scripts so that Houdini will find them.


Copyright © 1996 Side Effects Software Inc.
477 Richmond Street West, Toronto, Ontario, Canada M5V 3E7