Jump to content

Expression every 3 frames??


afx

Recommended Posts

depends. which context, POPs, SOPs, ..? if your expression is frame-dependent (meaning that it uses the $F variable), it's pretty easy using the modulo operator. Just use ($F - $F%3) instead of $F. this will make $F increment in steps of 3 frames instead of every frame (0 0 3 3 3 6 6 6 9 9 9 etc.). If you need it to increment by 1 every 3 frames, use (($F - $F%3) / 3) instead of $F - the resulting sequence will be (0 0 1 1 1 2 2 2 3 3 3 etc.).

cheers,

Abdelkareem

  • Like 2
  • Thanks 3
Link to comment
Share on other sites

Dude awesome thanks, that worked perfectly.

I was going about it all the wrong way.

I created a attribute create with a module in the first variable and then inputed that into an if() and was going by it that way.

Now what is the difference between $FF and $F? That might of been my issue also.

Edited by Angelo
  • Like 2
Link to comment
Share on other sites

$F is the current frame number as an integer (1 2 3 etc.), whereas $FF is the current frame as a float. $FF is important for certain effects (think particles or DOPs), and for correct motion blur and time shifting/stretching for example.

cheers,

Abdelkareem

  • Like 1
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...