rich_lord Posted May 26, 2013 Share Posted May 26, 2013 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 Quote Link to comment Share on other sites More sharing options...
sadhu Posted May 26, 2013 Share Posted May 26, 2013 (edited) 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 May 26, 2013 by sadhu Quote Link to comment Share on other sites More sharing options...
rich_lord Posted May 26, 2013 Author Share Posted May 26, 2013 oh god, that was totally a typo. I feel pretty dim, I was looking at that for over 2 hours trying to figure out why it didn't work. Thanks so much for spotting that! 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.