Link to the parent node

   2238   2   1
User Avatar
Member
30 posts
Joined: 5月 2015
Offline
Hi,

I'm wondering if there is a way to get the parent node or the first parent node in Hscript ?

Usually when I need to get an attribute on points i use the point function and as first argument I fill in the parent node. So it could save time to have a script or variable to get the parent node.

Like this : `point ( $ParentNode , $PT , “parm” , 0 )`

thanks
http://voxelfx.fr [voxelfx.fr]
User Avatar
Member
8524 posts
Joined: 7月 2007
Online
you probably want
opinputpath(“.”,0)

similarly:
opinputpath(“.”,1)
opinputpath(“.”,2)
opinputpath(“.”,3)
for inputs 2, 3, 4
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
30 posts
Joined: 5月 2015
Offline
Thank you,

I use this on promoted attributes in VOPs to get inputs paths but i didn't thouth to use it in the others networks -_-.
http://voxelfx.fr [voxelfx.fr]
  • Quick Links