Jorge Lega 0 Report post Posted February 13, 2009 These expressions save so much time, you might get home earlier tonight just by reading this post. If you've ever animated these sorts of things manually, you'll know what I mean. Most will need to be tweaked to your specific needs, but it's just a matter of playing with the numbers a little, and understanding how they'll change your animation. Here's the goods: Jumpy Wiggle 1 makes wiggle skip and hold rather than move fluidly. // Jumpy Wiggle 1 (moves at a random FPS) v=wiggle(5,50); if(v < 50)v=0; if(v > 50)v=100; v Jumpy Wiggle 2 is similar to 1, but works at a defined FPS so your "jump" will happen at a regular pace. // Jumpy Wiggle 2 (moves at a defined FPS) fps=5; //frequency amount=50; //amplitude wiggle(fps,amount,octaves = 1, amp_mult = 0.5,(Math.round(time*fps))/fps); Inertial Bounce is like making your moves "rubbery." Layers will overextend, then settle into place on position and rotation keyframes. // Inertial Bounce (moves settle into place after bouncing around a little) n = 0; if (numKeys > 0){ n = nearestKey(time).index; if (key(n).time > time){ n--; } } if (n == 0){ t = 0; }else{ t = time - key(n).time; } if (n > 0){ v = velocityAtTime(key(n).time - thisComp.frameDuration/10); amp = .05; freq = 4.0; decay = 2.0; value + v*amp*Math.sin(freq*t*2*Math.PI)/Math.exp(decay*t); }else{ value; } Sometimes you just want something to move constantly without keyframing it. Use throw. // Throw (move at a constant speed without keyframes) veloc = -10; //horizontal velocity (pixels per second) x = position[0] + (time - inPoint) *veloc; y = position[1]; [x,y] Same as throw, but for rotation. // Spin (rotate at a constant speed without keyframes) veloc = 360; //rotational velocity (degrees per second) r = rotation + (time - inPoint) *veloc; [r] This is an awesome script works like a charm in AE. I was just wondering how do I get it to work on C4D? I tried using the COFFEE tag but hasn't worked yet for me. Thanks again for these scripts (awesome timesavers) Quote Share this post Link to post Share on other sites
AAAron 0 Report post Posted February 13, 2009 I just joined the forums just to thank you for this stuff Especially Inertial Bounce! Quote Share this post Link to post Share on other sites
drnz 0 Report post Posted February 14, 2009 Thanks Beav--that Inertial Bounce will defs come in handy. Quote Share this post Link to post Share on other sites
sjlloyd 0 Report post Posted February 21, 2009 could hug you lot right now, thank gawd for expressions Quote Share this post Link to post Share on other sites
imcalledandy 0 Report post Posted February 21, 2009 great stuff - I like spin and throw cheers! Quote Share this post Link to post Share on other sites
knettwerk 0 Report post Posted March 30, 2009 Thank you for this. Quote Share this post Link to post Share on other sites
holdengraphics 0 Report post Posted May 27, 2009 Great stuff. Does anyone know of an equivalent to Inertia Bounce in Cinema 4D? Would be really useful ... Thanks Quote Share this post Link to post Share on other sites
basilisk 0 Report post Posted May 27, 2009 Does anyone know of an equivalent to Inertia Bounce in Cinema 4D? The Jiggle deformer (Mocca module) does this. It has the added advantage of deforming the object as well - try spinning an object to see instant jelly/jello. Quote Share this post Link to post Share on other sites
stoiqa 0 Report post Posted July 20, 2009 (edited) thanks....works great ) Edited July 20, 2009 by stoiqa Quote Share this post Link to post Share on other sites
RustyAce 0 Report post Posted September 14, 2009 Bump, thanks again Beaver Quote Share this post Link to post Share on other sites
tomcat 0 Report post Posted September 14, 2009 It is so easy to do this with keyframes. Why not just learn the program? Quote Share this post Link to post Share on other sites
RustyAce 0 Report post Posted September 14, 2009 not key framing is learning the program. There is a reason they built in the ability to scrip motion, plus you can achieve a smoother motion in half the time and be able to make adjustments faster then beating the curves to death. Quote Share this post Link to post Share on other sites
Audie12 0 Report post Posted September 15, 2009 That's great to hear that..Thanks a lot for the information.Good job. Regards Albert ______ Pret immobilier Quote Share this post Link to post Share on other sites
mintyfresh 0 Report post Posted September 17, 2009 is there something like intertial bounce that would work on the morphing between pasted spline path keyframes in a shape/mask object? i'd love to add some bouncyness like the inertial bounce delivers Quote Share this post Link to post Share on other sites
kitkats 0 Report post Posted September 21, 2009 Just wondering if anyone knows the easiest way to replicate inertial bounce in C4D? Quote Share this post Link to post Share on other sites
C.Smith 0 Report post Posted September 22, 2009 Just wondering if anyone knows the easiest way to replicate inertial bounce in C4D? I tried with Xpresso and the closest I got was CS_Springnull. But you can use the delay effector in mograph or attach a spring constraint to a null you keyframe and attach your object to the spring constraint. Quote Share this post Link to post Share on other sites
mercintosh 0 Report post Posted September 22, 2009 I tried with Xpresso and the closest I got was CS_Springnull. But you can use the delay effector in mograph or attach a spring constraint to a null you keyframe and attach your object to the spring constraint. Yeah that CS_Springnull is awesome. Thanks for that. Quote Share this post Link to post Share on other sites
kitkats 0 Report post Posted September 22, 2009 Here's some animation preset's I made for inertial bounce. There's three of them - put them in After Effects CS4>Presets>User Defined to access them within the Effects & Presets menu. The first, InertialBounce, simply adds Beaver's expression to the selected layer's Position value. The second and third, InertialBounce_P_key and InertialBounce_S_key, add the expression to Position and Scale respectively, but also tie it to three effect sliders, so that you can keyframe the amount of bounciness. This is very useful if you are bouncing a camera's moves, yet have some layers a long way from the camera and others close up. Note that these preset's don't work directly on Cameras and Lights since those cannot have effects applied. In this case parent them to a 3D null and apply the preset to the null. One small gotcha is that if you apply InertialBounce_P_key and then immediately apply InertialBounce_S_key (or vice versa), for some reason it erases the first set of effects. You need to deselect the Slider effects before applying the second preset. Quote Share this post Link to post Share on other sites
dan_hin 0 Report post Posted October 22, 2009 will that work in CS3? Quote Share this post Link to post Share on other sites
monovich 0 Report post Posted October 22, 2009 "this file was created in a newer version of after effects, time to upgrade your application." Quote Share this post Link to post Share on other sites
graymachine 0 Report post Posted October 22, 2009 EDIT: WTF do I need to do to post a simple link without it getting all fucked up? http://www.graymachine.com/2009/10/my-favorite-expressions Quote Share this post Link to post Share on other sites
monovich 0 Report post Posted October 22, 2009 hmm... that bottom link doesn't work for me. ? Quote Share this post Link to post Share on other sites
graymachine 0 Report post Posted October 22, 2009 Something weird with the URL in Wordpress.. inserting extra characters. I changed the URL, it works fine. http://bit.ly/2HpvkR Quote Share this post Link to post Share on other sites
dan_hin 0 Report post Posted October 22, 2009 "this file was created in a newer version of after effects, time to upgrade your application." dammit. it's begging-bowl time again. Cheers for that! Quote Share this post Link to post Share on other sites
floating.point 0 Report post Posted November 26, 2009 I did a quick mod of CS_VibrateNull with a stutter function to match the Jitter AE script above. (Stutter at zero equals stutter off). Stutter Hey Chris, The link is broken- Is this available still or has it been superseded by something else? Thanks, Nathan Quote Share this post Link to post Share on other sites