Jump to content

For-each odd number


Recommended Posts

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

 

foreach_v001.thumb.JPG.bf5ad6f1c3f20d607063fdd6c3ea9c3c.JPG

Link to comment
Share on other sites

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 by 3dome
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...