PortalPyro98 Posted March 19, 2019 Share Posted March 19, 2019 (edited) 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 March 19, 2019 by PortalPyro98 Quote Link to comment Share on other sites More sharing options...
Whatsinaname Posted March 19, 2019 Share Posted March 19, 2019 Stupid question: Why don't you just keyframe it? Quote Link to comment Share on other sites More sharing options...
PortalPyro98 Posted March 19, 2019 Author Share Posted March 19, 2019 18 minutes ago, Whatsinaname said: Stupid question: Why don't you just keyframe it? Just looking for ways to make the process more efficient. Quote Link to comment Share on other sites More sharing options...
kleer001 Posted March 19, 2019 Share Posted March 19, 2019 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. 1 Quote Link to comment Share on other sites More sharing options...
PortalPyro98 Posted March 19, 2019 Author Share Posted March 19, 2019 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. 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.