Jump to content
messipte

rotate points ?

Recommended Posts

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 !

rotate_tangent.png

Edited by messipte
added picture

Share this post


Link to post
Share on other sites

Hi Mess,

A quick thought would be perhaps normalize the tangentv and add a random normalized unit vector and normalize it again and multiply it by the original magnitude? Hope it helps. 

Share this post


Link to post
Share on other sites

Thank you violalyu, but I want them to rotate by a specified angle while remaining attached to the stem, and not random.

I added a pic.

Edited by messipte

Share this post


Link to post
Share on other sites

Matrices was a right direction: curve_frame.hipnc

curve_frame_anim.gif.469fe8ee5b5aa93762e4518dc108718b.gifcurve_frame_pigs.png.bdcea0b1217e75a750bb01fac71a14f0.png

Note that PolyFrame node may fail to output any tangents if the input curve is a straight vertical line.

Edited by f1480187
PolyFrame note

Share this post


Link to post
Share on other sites

Your setup works really great, but it will take time to me to figure out everything... Thank you again.

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

×