(SOLVED) HDA Display one thing but Output something else?

   136   2   3
User Avatar
Member
48 posts
Joined: 12月 2014
オフライン
Hello,

I was wondering if there was a way to have what is visibly displayed in the viewport show something different from what is actually being output? Maybe there's a way to do it through the viewer state? Though typically that's more an overlay so not sure if it's capable of overriding the node output view.

I could set the output to be invisible and add what I want to show as the Guide Geometry but that is not ideal at all.
Edited by JohnDoe777 - 今日 12:47:41
User Avatar
Member
254 posts
Joined: 5月 2017
オフライン
You can access the scene viewer and pass geo through drawables: hou.SimpleDrawable [www.sidefx.com]

For interactive stuff same principles with viewer states; for simple wireframe hdas guide geo.
Edited by vikus - 今日 11:25:24
User Avatar
スタッフ
80 posts
Joined: 6月 2024
オフライン
If you don't want your actual output to display at all, then create an output with the index -1, and then in your viewer state script you can use

node.setOutputForViewFlag(-1)

You can take a look at the Otis Muscle and Tissue Configure state to see options for having the alternative output always display, or only display when you're in the viewer state.
Liesbeth Levick
Technical Director: CFX
SideFX
  • Quick Links