centroid of input node

   3380   1   0
User Avatar
Member
194 posts
Joined: 8月 2011
Offline
hi, so i'm wondering if there is a way for me to refer to the node directly above the one I am on when I use centroid()???

I feel like i am almost always wanting to refer to the node directly above the one i am working on, but it feels very fiddly to have to type centroid(“../inputnodename”,D_X), etc… every time… not to mention it breaks if that node gets deleted.

I guess i could use a null node every time, but that seems a bit fiddly too.

Is there maybe a better way that I am missing?
User Avatar
Member
8833 posts
Joined: 7月 2007
Offline
just use input index (0,1,2,…)
so to get centroid in x of the first input it would be
centroid(0,D_X)
you can as well use opinputpath() which offers some more flexibility in some cases
so the same would be
centroid(opinputpath(".",0),D_X)
Tomas Slancik
FX Supervisor
Method Studios, NY
  • Quick Links