Jump to content

Unfolding style animation


Recommended Posts

Hello!

I'm trying to do an unfolding style animation on a curve. At the heart of this is the ability to rotate each point of the curve around its previous point iteratively. Each point should rotate all the points with a higher point number a certain amount.

This should keep all the segment lengths of the curve the same size, as i'm just rotating them around the previous point, but I cant set this up.

I've tried various methods, but this foreach version is the closest iv'e got. No idea why its not working, unless its a property of the foreach I don't understand.

The way its set up right now, a foreach iterates over the same geometry a number of times. Each iteration, I put all the points that are a higher point number than the iteration number into a group. Then I rotate that group around the point whose number is the same as the iteration number.

Any insight on this? In my example, changing the angle parameter on the Null sets how big the angle change is.

unfoldCurveAnim.hipnc

Link to comment
Share on other sites

point("../each1",stamp(".",FORIDXVALUE,0),"P",0) , this expression aswell as expression in z written in xform node in foreach is the problem. It should be like this

point("../each1",stamp("..",FORIDXVALUE,0),"P",0), you are not specifying the right address where FORVALUE resides. But you r doing it right in group node.

Edited by sadhu
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...