# Inertia bounce in Maya

 08 August 2013 artcross Frequenter portfolio Jonathan Reyes New York City, USA Inertia bounce in Maya I've been using an expression in after effects that calculates inertia based on 2 keyframes on a given property. You can find the expression here under inertial bounce: http://www.motion-graphics-exchange...s/4ad0f32a944ad I'm not too keen on scripting in Maya, so I was wondering if it's possible to convert this expression to something Maya can use. Here's the expression if the link isn't working: // 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; } Thank you! share quote
 08 August 2013 ristopuukko Earthling   portfolio Risto Puukko Senior fx td FrameStore London, United Kingdom http://download.autodesk.com/global...mber=d30e327698 __________________ - Oh no, it's me - share quote
 08 August 2013 artcross Frequenter portfolio Jonathan Reyes New York City, USA Not quite what i'm looking for. This expression would take 2 keyframes and calculate inertia, then automatically create a sort of decaying sine wave until it settles into the value of the last keyframe. For example, if i added it to 2 rotation keyframes, it would overshoot the last value of the keyframe, then bounce back to a little before the value of the last keyframe, the bounce forward again etc. until it finally settles into place. It could be applied to any keyframe w/ numerical value including scale, position, rotation, even bend handle values, etc.. share quote
 08 August 2013 mustique Expert copywriter There's an usefull free set of tools called red9 for animation purposes, it has a key randomizer feature, well take a look and decide by yourself http://red9-consultancy.blogspot.co...filter-and.html __________________ "Any intelligent fool can make things bigger, more complex & more violent..." Einstein share quote
 10 October 2013 artcross Frequenter portfolio Jonathan Reyes New York City, USA Thanks mustique, finally had a chance to check out that pack and while definitely useful, isn't what I'm looking for. share quote
 06 June 2014 RickToxik Expert   portfolio emg Canada You'll be a happier man if you buy Maya MASH: https://mash.mainframe.co.uk/ I have lost track of all the things you can do with it, but inertia effects is one of them since the beginning (the spring node). Also, the guy who is behind MASH I believe is one of the few who made an inertia expression for maya many years ago. I am serious, MASH is one of the top plugins ever invented for maya : ) share quote
06 June 2014
Adam Burke wrote a script years ago called jabPendulate that did something similar to what your expression does. I cant find it online anywhere, so I hope Adam doesn't mind me uploading it here.

If you feel like spending \$35, Chad Vernon has a great jiggle deformer tutorial on cgcircuit that would really be of interest to you if you did want to learn some python api coding. Possibly too advanced if you are just starting out. Or maybe not. The deformer works on component level, but he also does some prototyping that shows the same math applied at a transform level. Its a great tutorial

David
Attached Files
 jabPendulate.zip (1.3 KB, 58 views)
__________________
http://www.djx.com.au

 Posting Rules You may not post new threads You may not post replies You may not post attachments You may not edit your posts vB code is On Smilies are On [IMG] code is On HTML code is Off CGSociety Society of Digital Artists www.cgsociety.org Powered by vBulletinCopyright ©2000 - 2006, Jelsoft Enterprises Ltd.
Forum Jump
 Please select one User Control Panel Private Messages Subscriptions Who's Online Search Forums Forums Home -------------------- Gallery     Latest Entries     Featured 2D     Featured 3D     CG Awards     Community Awards Main     News     General Discussion     Off Topic     Recruitment         Temp Job Board Challenges     CGS Environment 101     Education     Demo Reel     Portfolio Review GROUPS WIP ADVICE     CGS Pro     New 2D/3D Sketchbooks 2018     WIP 2D/3D & Animation         WIP/Critique: 3D         WIP/Critique: 2D             Speedpaints & Sketchbooks         WIP/Critique: Animation     Partners and Groups         Art Direction and Interviews         Kitbash 3D Thunderdome         Collaborative Projects Autodesk     Autodesk Maya         Maya Dynamics         Maya Rendering         Maya Character Setup         Maya Programming     Autodesk Miscellaneous         Autodesk MotionBuilder         Autodesk Mudbox         Autodesk Softimage             XSI: Programming             ICE: Interactive Creative Environment     Autodesk 3ds max         3dsMax Tutorials & Tips         3dsMax Resources         3dsMax SDK and MaxScript         Plugins & Add-ons         Particle Flow     Mudbox Featured Gallery ZBrush     Featured Zbrush Gallery     Pixologic ZBrush     Keyshot     Marvelous Designer Texturing     Allegorithmic Substance         Substance Designer         Substance Painter         Substance Featured Gallery     Texturing XYZ     Mari     Marmoset Toolbag Software     Maxon Cinema 4D         Cinema 4D Resources     Side Effects Houdini     Compositing Software         The Foundry Nuke         Adobe After Effects         Autodesk Effects and Compositing         Eyeon Software Digital Fusion     Additional Software         Lightwave 3D             LW Resources             LW Tutorials         The Foundry Modo             The Foundry Time Travel Challenge         E-on Software Vue         Photoshop / Painter         Blender         3DCoat Techniques     Art Techniques and Theories     Digital Matte Painting         Digital Matte Painting Mini-Challenge     Modeling         Modeling Challenge             Member Model Collection     Texturing and Surfacing     Character Rigging     Animation     Lighting and Shaders         Lighting Challenges     Compositing and Editing     Anatomy and Figurative Art         SPOTLIGHT: Best of the Artistic Anatomy and Figurative Art Forum         Tutorials and Workshops         Personal Anatomy & Sketchbook Threads         References, Resources, and Supplies Technical     VR/AR     Master Virtual Reality with BrioVR     Workstation Builds     Game Engine     Graphics Programming     Technical and Hardware     Support and Reported Post
Miscellaneous

All times are GMT. The time now is 12:18 AM.