Doum Posted January 31, 2013 Share Posted January 31, 2013 Hey, I'm trying to getparameter rot of my particles, modify it and set it back. What's the way to output that kind of value from the voppop. I'm trying to use another parameter node, but it doesn't seem to work. thanks Quote Link to comment Share on other sites More sharing options...
anim Posted January 31, 2013 Share Posted January 31, 2013 rot is quaternion (vector4) so you can use Import Attribute VOP, Add Attribute VOP or just Parameter VOP to get and set that attribute, the only important thing is that it's name is rot and type vector4 Quote Link to comment Share on other sites More sharing options...
Doum Posted January 31, 2013 Author Share Posted January 31, 2013 thx for the help My problem is more that I don't knowhow to output that rot value since there is no attribute in the output to plug it in... How does it work to get my value out of the voppop? Quote Link to comment Share on other sites More sharing options...
bloomendale Posted January 31, 2013 Share Posted January 31, 2013 use Parameter VOP with exact same name ("rot") and Export option set to Always or When input connected Quote Link to comment Share on other sites More sharing options...
anim Posted January 31, 2013 Share Posted January 31, 2013 sorry if I was unclear in my first response Import Attribute VOP or Parameter VOP was meant for import/input of the attribute to VOPs and Add Attribute VOP or Paramter VOP was for export/output Quote Link to comment Share on other sites More sharing options...
Doum Posted January 31, 2013 Author Share Posted January 31, 2013 (edited) thanks guys, it's working! What I'm trying to achieve is more complicated and I'm a bit stuck there. I Have a bunch of lances picking in the ground and I want to had a vibration effect. At the moment they are touching the ground and I start a Timer to multiply the angle of my rot for 2 sec. Is there a way to create a ease out in an expression ? Here is the expression I multiply my rotangle with: fit01(2-($HITTIMER/2),0,1) RotationBasic.hipncFetching info... Edited January 31, 2013 by Doum Quote Link to comment Share on other sites More sharing options...
anim Posted January 31, 2013 Share Posted January 31, 2013 fit01(x, 0, 1) doesn't make much sense and behaves like clamp(x, 0, 1), if you want to fit 2 sec of your timer to 0, 1 you can do fit($HITTIMER, 0, 2, 0, 1) to ease in or out you can use pow() function for easing in and out there is smooth() function for your case try something like pow(fit($HITTIMER,0,3,1,0), 2)[/CODE] RotationBasic_fix.hipncFetching info... Quote Link to comment Share on other sites More sharing options...
Doum Posted January 31, 2013 Author Share Posted January 31, 2013 thanks anim! I'll give a try Quote Link to comment Share on other sites More sharing options...
Doum Posted February 4, 2013 Author Share Posted February 4, 2013 Thanks it's working! I was using a "float to vector4" to modify my rot attribute. It was updating the rot attributes in the display view, but my particle wasn't rotating. I have changed the "float to vector4" for a Quaternion node and it's working. 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.