|On this page|
This class provides a common interface to all drawable classes.
Tips and notes
hou.SimpleDrawable is the most basic Houdini drawable class, it is easy to use as you just need to attach a geometry, enable it and Houdini will take care of drawing the geometry.
hou.TextDrawable draws text in the viewport.
When you create a drawable object, it is hidden. You need to call
show(True)for the attached element to appear. hou.SimpleDrawable requires an extra call to hou.SimpleDrawable.enable() for the geometry to appear.
The drawable element will appear in the viewer until the drawable object is hidden or deleted. If there are no references to the object, Python will automatically delete it during garbage collection, and the attached element will disappear. So, you need to make sure to keep a live reference to the object as long as you want it to appear.
The name of this drawable.
The label of this drawable.
Set the label for this drawable.
Displays or hides the element attached to this drawable in the viewport. The element will appear the next time the viewer redraws.
True to show the element or
False to hide it.
Returns True if the drawable is visible or not.
Sets the transform matrix of the element attached to this drawable. The changes will appear the next time the viewer redraws.
A hou.Matrix4 transformation matrix to set the element’s translation, rotation, and scale.
: → hou.Matrix4
Returns the transform matrix of the element attached to the drawable.