Broken attribute queries (Pivot + $CEX,Y,Z)

   2990   3   1
User Avatar
Member
36 posts
Joined: Sept. 2014
Offline
So I am trying to figure out if I am doing something horribly wrong, or if its a known issue (both very likely!)


I have a setup a graph that is setting the centroid on a transform, but it doesn't return any information? no matter how I try to query it?

ideal would be that I can query the channel that has the $CEX and it should return the number it is

and ya.. I get “bad expression” or just 0's

Edit: corrected back to bad*
Edited by - Nov. 10, 2014 17:05:10

Attachments:
brokenCEXYZ.hip (60.2 KB)

todo: add signature
User Avatar
Member
606 posts
Joined: May 2007
Offline
I guess it might be both

Something really is fishy there; the pivot actually is at the centroid if you rotate it, but it shows as zero in the UI. Even the ch() reference to it seems borked, yes.

The detail version works if your expression reference is right, see attached. Direct reference works if you use centroid() expression instead of the local variable.

Attachments:
brokencexyze.hip (60.2 KB)

User Avatar
Member
9204 posts
Joined: July 2007
Online
while it seems broken (compared to a few houdini versions before), I read somewhere, that it's that way by design due to some evaluation problems

so now you can't see or reference any values returned by local variables, even if they are not varying
centroid() and bbox() are the only options
Tomas Slancik
CG Supervisor
Framestore, NY
User Avatar
Member
36 posts
Joined: Sept. 2014
Offline
Sucks a bit, but hopefully they fix the $CEX/Y/Z shortcut

and thank you for the solution!
todo: add signature
  • Quick Links