I've got an HDA with a few ramped attribute visualizers that I'd like to expose and be able to turn on and off at the level of the HDA. But I can't seems to figure out how to make them visible outside the HDA.
I saw some suggestions about the OnCreate python script, but couldn't figure out from the description what to do. My python skills are pretty low.
Any suggestions would be helpful.
Exposing visualizers in HDA
741 2 0- made-by-geoff
- Member
- 63 posts
- Joined: July 2018
- Online
- made-by-geoff
- Member
- 63 posts
- Joined: July 2018
- Online
OK. Just had to spend a little time with the explanation here:
https://www.sidefx.com/forum/topic/54063/ [www.sidefx.com]
Pretty simple: Just insert the code into the scripts panel, under the "On Created" event handler.
The visualizer is created when the HDA is dropped down.
https://www.sidefx.com/forum/topic/54063/ [www.sidefx.com]
Pretty simple: Just insert the code into the scripts panel, under the "On Created" event handler.
node = kwargs['node'] vis = hou.viewportVisualizers.createVisualizer(hou.viewportVisualizers.type('vis_marker'), hou.viewportVisualizerCategory.Node, node) vis.setName(node.name()) vis.setIsActive(True, None) vis.setParm('style', 3) vis.setParm('attrib', 'v')
The visualizer is created when the HDA is dropped down.
- hosein1
- Member
- 1 posts
- Joined: June 2023
- Offline
-
- Quick Links