Turn echo all on, do it by hand read what the script editor spits out. (your results will be different then mine, depends on your settings and configuration)
- create a character this is the hardest one to automata basically its at simplest (but again can be infiintely complex depends on character in question) for example:
character -name "character1"
-excludeVisibility
-excludeScale
nurbsSphere1 nurbsSphere2; // list as many objects you need or none to use selection
- Import clips:
Ok abit tricky maya says doImportClipArgList yada yada.. then find out where that script is with what is and open file for reading. You see athe very end it calls fileBrowser("clipEditorImportClip",$importClip,"ma",0); Now find that file, it says the first string is a callback so you go and find clipEditorImportClip. Now thet thet command is loaded you can call it with this function (i suggest you do as it simplifies things a bit) or (adapting the import clip a bit simpler its hyndreds of lines long tough):
file -import "yourFileName"; // and if it was not exported as a pure clip then it iports a lot of crap too
if you use file import continued assign clip:
clipSchedule -start 1 -ra -in clipnameSource character1Scheduler1;
and so forth... Just a fbit reading maya tells you all you need to know. But sometimesit atkes some digging.
Tip: Wrap whatIs to a function taht will open the function up in a editor