beijingger.blogg.se

Basic animation in maya
Basic animation in maya












basic animation in maya

('Found ', 2, ' keyframes on ', u'|anslateX') We would see something like the following output in the script editor:. For example, if we had a simple bouncing ball animation with the following curves: If you select an object with animation curves and run the script, you should see a readout of the time and value for each keyframe on each animated attribute. Index=(0,numKeyframes), valueChange=True) Values = cmds.keyframe(attribute, query=True,

basic animation in maya basic animation in maya

Times = cmds.keyframe(attribute, query=True, Print("Found ", numKeyframes, " keyframes on ", NumKeyframes = cmds.keyframe(attribute, query=True, How to do it…Ĭreate a new file and add the following code: import maya.cmds as cmdsĪnimAttributes = cmds.listAnimatable(obj) Either load up a scene with animation or skip ahead to the recipe on setting keyframes. To make get the most out of this script, you’ll need to have an object with some animation curves defined.














Basic animation in maya