Embedding visualizers into digital assets

   3006   2   0
User Avatar
Member
696 posts
Joined: March 2009
Offline
Hey there,

I've got an asset that generates vector attributes and it has a visualizer node built-in, but the workflow is really clunky when it gets to this point. For instance I can't promote the visualizer interface to my asset, I can't reference parameters in the visualizer interface and if I rename my attributes within my asset(even if renaming occurs after the visualizer node), they stop showing up in my viewport.
Has anybody come across similar limitations and maybe a workaround?

Cheers
Toronto - ON
My Houdini playground [renderfarm.tumblr.com]
“As technology advances, the rendering time remains constant.”
User Avatar
Member
7762 posts
Joined: Sept. 2011
Online
Check out the build-in node, the bend sop. You can promote the option to disable/enable visualizers, but it has to be done indirectly, since you can't promote the actual visualizer itself. It uses the bindings tab to alternate between binding the visualizer attribute, and binding to nothing.
User Avatar
Member
9 posts
Joined: Feb. 2017
Offline
You can implement it using python in the OnCreated script on your hda.
Add the attached script to the ‘scripts’ section of your hda. It will create a new visualizer, sets the Attribute parameter to ‘v’ and sets the style to ‘Vector Trail’.

From houdini documentation:
http://www.sidefx.com/docs/houdini/hom/hou/viewportVisualizers.html [www.sidefx.com]
https://www.sidefx.com/docs/houdini/hom/hou/ViewportVisualizer.html [www.sidefx.com]

Attachments:
OnCreated (271 bytes)

  • Quick Links