zjie Posted July 22, 2019 Share Posted July 22, 2019 Hi guys, I am learning to use the for-each loop and doing a flipping animation, which on each iteration, each primitive will flip up in clock-wise direction, is there a way to make it such that on each odd number iteration, it will flip anti clockwise? And also right now I'm using timeshift to delay the animation, if there a way to use an effector instead? Thanks for the help! foreach_v001.mp4 foreach_v001.hip Quote Link to comment Share on other sites More sharing options...
3dome Posted July 22, 2019 Share Posted July 22, 2019 (edited) 5 hours ago, zjie said: is there a way to make it such that on each odd number iteration, it will flip anti clockwise have this expression on your first keyframe: bezier()*if(detail("../foreach_count1/","iteration",0)%2==0,1,-1) (just add the bold part) Edited July 22, 2019 by 3dome Quote Link to comment Share on other sites More sharing options...
zjie Posted July 23, 2019 Author Share Posted July 23, 2019 Thanks, another question here, in my offset ty, is it possible to use the bounding box YMAX of the previous iteration, rather than multiplying it with a 0.52 value? Quote Link to comment Share on other sites More sharing options...
3dome Posted July 23, 2019 Share Posted July 23, 2019 no i don't think so but you can use this bbox("../foreach_begin1/", D_ZSIZE)*detail("../foreach_count1/","iteration",0) to get rid of the hard coded value and stay fully procedural 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.