Jump to content

evalAtFrame() and chop constraints weirdness


jordibares

Recommended Posts

I am writing a little python tool that requires evaluating the value of a channel a particular frame, but the object i am evaluating has a chop constraint and the function

        pos = internal_cam.parmTuple('t').evalAtFrame(f)

returns (0,0,0)

I imagine the chop network is "overriding" the value but I don't seem to get the result.

Any ideas?

Thanks.

jb

Link to comment
Share on other sites

i think it's not related to constraints nor chops per se. evalParm() is 'conservative' in a sense it doesn't obey higher order operation (as parenting or constraining), just giving raw channel values. Albeit this line:

hou.node(...).worldTransformAtTime(frame).extractTranslates()

gives the definite position whenever parented, constrained and what's not happening with a node.

Link to comment
Share on other sites

Thanks Szymon, I did end up using that approach and it works well, nevertheless it has been quite annoying not to be able to rely on the evalAtFrame()

I took advantage as well as the worldTransformAtTime does a proper evaluation on the frame so I don't need to update the frame and things are a lot faster and smoother.

 

Thanks once again.

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...