Jump to content
patis

remember intrinsic transform

Recommended Posts

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

2020-12-15_09h53_26.gif

forum y.PNG

Edited by patis

Share this post


Link to post
Share on other sites

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 by ikoon
  • Thanks 1

Share this post


Link to post
Share on other sites
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! :) 

  • Like 1

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×