Jump to content

Hold $F


Recommended Posts

How can I hold the $F current value?

I want to create a attribute that when it evaluates True, holds the current frame number.

If I use $F it will change every frame. I tried the "lock" expression, but it change the frame value as well.

I am digging the expressions manual, but didn't find anything that may work.

Does anyone have an idea?

Thanks

Link to comment
Share on other sites

How can I hold the $F current value?

I want to create a attribute that when it evaluates True, holds the current frame number.

If I use $F it will change every frame. I tried the "lock" expression, but it change the frame value as well.

I am digging the expressions manual, but didn't find anything that may work.

Does anyone have an idea?

Thanks

that's very abstract problem

maybe try to be more exact

but the easiest way would be probably Hold CHOP which can hold left input value when the trigger changes from 0 to 1

Link to comment
Share on other sites

you must also evalutate condition one frame before current frame...

if condition was true one frame before and it is true now than you don't change your parameter/attribute

if condition was false one frame before and it is true now then you change your variable/attribure to $F...

you can use chf function for that

Edited by majikal
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...