dedeks3000 Posted December 2, 2014 Share Posted December 2, 2014 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 Quote Link to comment Share on other sites More sharing options...
edward Posted December 2, 2014 Share Posted December 2, 2014 I would suggest a callback button on your node. When the user clicks it, it reads the transform into a parameter that your node then cooks using it. If you can, an even better alternative is to use a second input as your rest. Quote Link to comment Share on other sites More sharing options...
Stalkerx777 Posted December 2, 2014 Share Posted December 2, 2014 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. Quote Link to comment Share on other sites More sharing options...
dedeks3000 Posted December 3, 2014 Author Share Posted December 3, 2014 @edward : your solution is good : click to store data. @Stalkerx777 : for reusable tool , i think it's not a problem. Thanks. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.