Re: Animating my script in Maya using Python

48 views
Skip to first unread message
Message has been deleted

Heather Rose

unread,
May 1, 2014, 12:36:24 PM5/1/14
to python_in...@googlegroups.com
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!

Marcus Ottosson

unread,
May 1, 2014, 12:52:18 PM5/1/14
to python_in...@googlegroups.com
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' node and have it execute once per frame or such.

Broad question gets broad answer, hope it helps.


--
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 python_inside_m...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/python_inside_maya/90e381eb-5a1c-4438-91fc-d970cdfbebba%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Marcus Ottosson
konstr...@gmail.com

Eduardo Grana

unread,
May 1, 2014, 2:16:59 PM5/1/14
to python_in...@googlegroups.com
Hello Heather,

You can also do fun stuff, like using devices or whetever you can think about.
Lot of people is experimenting with kinect, and wii controlers.
I saw once a guy animating an object based
on querying his laptop orientation through a system command.
Hope this is usefull.
Cheers!
Eduardo




For more options, visit https://groups.google.com/d/optout.



--
Eduardo Graña
www.eduardograna.com.ar
Reply all
Reply to author
Forward
0 new messages