Jump to content

Just noticed something and got confused...


ajz

Recommended Posts

Hello Guys.
There's this certain thing I noticed today which puzzles me.

Assumption: We have a poly mesh sphere of rad(x,y,z)=0.5 and an xform node piped to it. Y-axis pivot (py) of the transform node equals .

If I set py=-$SIZEY/2, it places the pivot at the bottom of the sphere, which is correct. But... If I peek at a current value of py (in Parameters pane), it still shows , while it should be equal to -0.5. If I pipe a Python SOP to check the value of SIZEY local variable, it shows me 1.0. So why inside the py parameter?

hou.node('/obj/sphere_object1/xform1').parm('py').eval()

also returns 0.0 instead of -0.5. So the parameter really stores .

Similarly with xform's ty. If I type $SIZE/2, which levels the bottom of the sphere with the origin on Y-axis, and if I peek at the parameter's value of ty, I get 0.0. Python's eval()also shows that this parameter stores 0.0. But why? Why it's not equal to 0.5?

Could someone please explain this to me? Why does this happen?

Edited by ajz
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...