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*
Broken attribute queries (Pivot + $CEX,Y,Z)
2990 3 1-
- MikePaixao
- Member
- 36 posts
- Joined: Sept. 2014
- Offline
-
- eetu
- 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.

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.
-
- tamte
- 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
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
CG Supervisor
Framestore, NY
-
- MikePaixao
- Member
- 36 posts
- Joined: Sept. 2014
- Offline
-
- Quick Links