Fabiano Berlim Posted September 10, 2010 Share Posted September 10, 2010 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 Quote Link to comment Share on other sites More sharing options...
anim Posted September 10, 2010 Share Posted September 10, 2010 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 Quote Link to comment Share on other sites More sharing options...
Pazuzu Posted September 11, 2010 Share Posted September 11, 2010 (edited) CHOPs are the way. Edited September 11, 2010 by Pazuzu Quote Link to comment Share on other sites More sharing options...
majikal Posted September 11, 2010 Share Posted September 11, 2010 (edited) 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 September 11, 2010 by majikal 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.