Jump to content

Gravity activation based on an expression.


Recommended Posts

Hi just wondering if any one could give me any advice on how to write an expression which would set the gravity to 1 for the first 30 frames, back to 0 for until 180 where i would turn back on. At the moment i have if($FF >= 30,0,1) which sets the first 30 frames to active but I'm struggling with re-activating it at frame 180.

Any help would be appreciated.

Edited by PortalPyro98
Link to comment
Share on other sites

I would:

($F<31)||($F>179)

Each side of the logical OR evaluates to "1" when they're true.

Boolians are your friends!

15 minutes ago, Whatsinaname said:

Stupid question: Why don't you just keyframe it?

To save a couple clicks? To practice expressions? For fun?

But yes, keyframes are the quickest and easiest way to animate in general.

  • Thanks 1
Link to comment
Share on other sites

2 minutes ago, kleer001 said:

I would:

($F<31)||($F>179)

Each side of the logical OR evaluates to "1" when they're true.

Boolians are your friends!

To save a couple clicks? To practice expressions? For fun?

But yes, keyframes are the quickest and easiest way to animate in general.

Oh cool thanks a lot, yeah I'm just trying to use expression's where possible to help me learn but i understand that in this case key frames would be a lot similar and probably faster. Thanks anyway. 

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...