Jump to content

Cache Transform on Python ObjNode


dedeks3000

Recommended Posts

Hye everyone,

 

I created a simple Python OBJ Node that performs some matrix stuff with the worldTransformation of  another nodes.

I need to store some transform but just once (sort of rest position) and the SetCookTransform()  reevaluate each time the values

I can do that with a pose Chop or maybe through userdata.

How to do that ?

Thanks

Link to comment
Share on other sites

Hye everyone,

 

I created a simple Python OBJ Node that performs some matrix stuff with the worldTransformation of  another nodes.

I need to store some transform but just once (sort of rest position) and the SetCookTransform()  reevaluate each time the values

I can do that with a pose Chop or maybe through userdata.

How to do that ?

Thanks

I often use cachedUserData for such tasks. It's easy and you have flexible control over your cached data. But beware, if the only thing you need is get worldTransformation of one object, it may be faster to just get one, instead of writing to cache, checking if cache is valid and so on.

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