Quite broad, indeed. :) Off the top of my head, I can think of these methods.
1. *Expressions*, you'd use these in channels directly, like to animate sine-waves or reading a value from another channel 2. *Time-controlling animation curves*, you'd draw your curve as per usual in the graph editor, and replace 'time1' which is determining its output with manually setting values with your script; based on things happening or any other triggers you've got setup in your scripts. Animation-curves generally govern most animation within Maya, mastering these would give you quite a bit of control from your scripts. They could ultimately be generated via script too, as opposed to drawing them by hand. 3. *Manually setting channel values*, such as via cmds.setAttr(). Your script would then be responsible for keeping track of time, or syncing with the timeline; that is, if your interested in having your animations synchronise with it. Other uses might be AI or various events taking place, maybe based on dynamics like particles or cloth etc. There are various methods that could help you with this, off the top of my head, you could trigger your script from a 'script<http://download.autodesk.com/global/docs/maya2013/en_us/Nodes/index.html>' node and have it execute once per frame or such. Broad question gets broad answer, hope it helps. On 1 May 2014 17:36, Heather Rose <[email protected]> wrote: > Oh and I already have a script that moves the objects! I am wondering how > to go about animating those movements!! > > > On Thursday, May 1, 2014 5:28:20 PM UTC+1, Heather Rose wrote: >> >> Hi guys, >> >> I'm new to scripting in maya and I'm just wondering how to go about >> scripting an animation in maya? Any tips or anything I could read or watch >> that would help me out? >> >> Very general question I know! >> >> Thanks! >> > -- > You received this message because you are subscribed to the Google Groups > "Python Programming for Autodesk Maya" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/python_inside_maya/90e381eb-5a1c-4438-91fc-d970cdfbebba%40googlegroups.com<https://groups.google.com/d/msgid/python_inside_maya/90e381eb-5a1c-4438-91fc-d970cdfbebba%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- *Marcus Ottosson* [email protected] -- You received this message because you are subscribed to the Google Groups "Python Programming for Autodesk Maya" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/CAFRtmODNFAfE%3D8M2uPoOg5yfeU89ubNy8Kn1K4Eu86W7EUrE_A%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
