Viewport visualizer callbacks let you run code when events occur on visualizers in individual categories. See hou.viewportVisualizers.addEventCallback.
For all event types, the callback is called with an event_type
keyword argument (containing one of the values below, indicating the type of event that occurred).
Some event types pass additional keyword arguments to the callback function, as noted below.
Values ¶
hou.viewportVisualizerEventType.VisualizerCreated
Runs after a new visualizer is created.
Extra keyword argument: visualizer
(hou.ViewportVisualizer)
hou.viewportVisualizerEventType.VisualizerDeleted
Runs after a visualizer has been removed from a category, but before it has been deleted. You cannot cancel the deletion.
Extra keyword argument: visualizer
(hou.ViewportVisualizer)
hou.viewportVisualizerEventType.VisualizerMountChanged
Runs after a visualizer setting related to its mount, like the name or the scope, has changed.
Extra keyword argument: visualizer
(hou.ViewportVisualizer)
hou.viewportVisualizerEventType.VisualizerParmsChanged
Runs after a visualizer’s parameters have changed.
Extra keyword argument: visualizer
(hou.ViewportVisualizer)
hou.viewportVisualizerEventType.VisualizerFlagsChanged
Runs after a visualizer’s flags have changed.
Extra keyword argument: visualizer
(hou.ViewportVisualizer)
hou.viewportVisualizerEventType.VisualizerActiveChanged
Runs after a visualizer’s active state has changed.
Extra keyword argument: visualizer
(hou.ViewportVisualizer)
hou.viewportVisualizerEventType.CategoryActiveChanged
Runs after a visualizer category’s active state has changed.
Extra keyword argument: category
(hou.ViewportVisualizerCategory)
Extra keyword argument: category_node
(hou.OpNode)
hou.viewportVisualizerEventType.CategoryDeleted
Runs after a visualizer category has been destroyed.
Extra keyword argument: category
(hou.ViewportVisualizerCategory)
Extra keyword argument: category_node
(hou.OpNode)