patis Posted December 15, 2020 Share Posted December 15, 2020 (edited) Hello, I want to store intrinsic transform so that freeze transform when flag is activated. But now primitive is disappearing when flag is activated. Is there any improvement of my script, or other approach? Thank you. rememver intrinsic transform.hipnc Edited December 15, 2020 by patis Quote Link to comment Share on other sites More sharing options...
ikoon Posted December 15, 2020 Share Posted December 15, 2020 (edited) Hi patis, you have to split your code into two wrangles. When you are trying to read this "matrix3 m1 = prim( 0, "temp", @primnum );" you are reading it from the input of the wrangle. You are reading from the "active_animation" node. But that node does not have that attribute yet. It is due to the SIMD architecture of VEX. Logically, you had it all right ... but despite the order of your lines (although you stored that attribute before reading it), vex "internally reordered the lines" and stored that attribute as a last task. I attached the solution, I hope it helps. Maybe try to google more about SIMD and Houdini VEX architecture. Sorry for my bad english (Btw you may do a similar effect with the Timeshift SOP / clamp). rememver intrinsic transform split.hipnc Edited December 15, 2020 by ikoon 1 Quote Link to comment Share on other sites More sharing options...
patis Posted December 15, 2020 Author Share Posted December 15, 2020 10 hours ago, ikoon said: Hi patis, you have to split your code into two wrangles. When you are trying to read this "matrix3 m1 = prim( 0, "temp", @primnum );" you are reading it from the input of the wrangle. You are reading from the "active_animation" node. But that node does not have that attribute yet. It is due to the SIMD architecture of VEX. Logically, you had it all right ... but despite the order of your lines (although you stored that attribute before reading it), vex "internally reordered the lines" and stored that attribute as a last task. I attached the solution, I hope it helps. Maybe try to google more about SIMD and Houdini VEX architecture. Sorry for my bad english (Btw you may do a similar effect with the Timeshift SOP / clamp). rememver intrinsic transform split.hipnc Hello, Thank you for great detail. I could that! 1 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.