messipte Posted September 27, 2017 Share Posted September 27, 2017 Hi i'm still very new to houdini so sorry for the noob question. I want to create a stem with leaves attached to them, I created the stem and used the tangentv in order to attach the leaves, now I'd like to rotate each point by a certain angle, and i'm stuck. Tried with pointvop and matrix, had no success, I guess it could be possible with quaternions but still, I can't figure out how to do this simple thing... Can someone help me ? Thanks ! Quote Link to comment Share on other sites More sharing options...
boby Posted September 30, 2017 Share Posted September 30, 2017 (edited) hi messipte, i guess you want to rotate it along the branch? here is a simple hip file. degtorad node let you rotate vector by an angle in degree, feel free to replace it with any random point value If you want to rotate it in other random direction, you can use any random vector per point instead of t. boby rot_vec.hipnc Edited September 30, 2017 by boby 2 Quote Link to comment Share on other sites More sharing options...
messipte Posted September 30, 2017 Author Share Posted September 30, 2017 Thank you so much boby ! Quote Link to comment Share on other sites More sharing options...
messipte Posted October 1, 2017 Author Share Posted October 1, 2017 (edited) Thank you your setup works great but now, I have a hard time trying to orient the leaves on the new N. What is wrong in my setup ? Thanks a lot ! stem_2.hipnc Edited October 1, 2017 by messipte Quote Link to comment Share on other sites More sharing options...
boby Posted October 2, 2017 Share Posted October 2, 2017 Default is to align copy's Z axis to point normal. -To align your line, build it align with z > direction = (0,0,1), instead of (1,0,0) -same thing for your sphere, stretch it in world Z axis boby Quote Link to comment Share on other sites More sharing options...
messipte Posted October 2, 2017 Author Share Posted October 2, 2017 Thank you a lot, will do that ! Quote Link to comment Share on other sites More sharing options...
messipte Posted October 2, 2017 Author Share Posted October 2, 2017 ...and it works ! Thank you so much for the hint ! 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.