Maya
Maya
Move mouse over a view <perspective, top, front, etc> and press space to have
it occupy the entire workspace. Press space to toggle back to four views.
Any command performed using the UI invokes a script - try adding a sphere
and deleting it to see the sequence of scripting actions generated.
Idea -
Query the number of keyframes <keyframe -query -keyframeCount>
Query the time and values at the keyframes <keyFrame -query -
timeChange -valueChange>
Find out linearly interpolated values at each time instance between
successive keyframes
Add these values as keyframes <setKeyframe -time <> -value <> >
Project -
Change the linear interpolation part to other forms of interpolation.
Exercise - Project Bootstrap
Copy the example given in the project description and try to run it <Ctrl+Enter>
from the script editor to have the script stored.
Perform a linear interpolation of the height of the box that is jumping over the
sphere and note the change in the animation curve in the graph editor to
ensure that you’ve switched over to a linear interpolation.
Useful Links
Maya modeling and animation:
http://download.autodesk.com/us/maya/Maya_2014_GettingStarted/index.html - Maya Basics - Lesson 1 to 4, Animation - Lesson 1
particularly helpful for getting up and running.
MEL scripting:
http://download.autodesk.com/global/docs/maya2014/en_us/index.html?url=files/Background_MEL_for_programmers.htm,
topicNumber=d30e788742
http://web.archive.org/web/20111120180214/http://caad.arch.ethz.ch/info/maya/manual/Commands/melCommands/melFAQ.html
Questions?