query VOPvalues in obj-level

   2179   2   1
User Avatar
Member
26 posts
Joined: June 2015
Offline
Hi,

another question from me while learning this software :
How can I query values set/found in vops directly in /obj level? Right now I'm storing a value found in vops in an attribute, which is queried after vops with detail(….) but I'm curious to see if it can be done abit more efficient.

In the example file there are 2 polygon objects and a switch node….the switch outputs one of them based on the largest area. So for this file the question is :
can the compare output integer be queried somehow?

thank you for your time!
Bjorn

Attachments:
switchQuestion.hipnc (80.4 KB)

with kind regards,
Bjorn

Houdini TA @ AAA game-studio
Freelance Houdini @ www.paleopixels.com
User Avatar
Member
9670 posts
Joined: July 2007
Offline
no, you can't access the VOP variable from outside directly, storing in detail is the way to go

however instead of computing the comparison in attribvop, why not comparing is switch directly?

detail(opinputpath(“.”,1), “area”, 0)>detail(opinputpath(“.”,0), “area”, 0)
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
26 posts
Joined: June 2015
Offline
Thank you!
with kind regards,
Bjorn

Houdini TA @ AAA game-studio
Freelance Houdini @ www.paleopixels.com
  • Quick Links