So I select an object (a point light here for arguments sake) and export its anim with animexport.
It works fine and the script editor returns this:
select -r pointLight1 ;
pv_performAction "U:/TestAnims/Maya Work/test.anim" "animExport";
file -op "precision=8;intValue=17;nodeNames=1;verboseUnits=0;whichRange=2;range=0:170;options=keys;hierarchy=none;controlPoints=0;shapes=1;helpPictures=0;useChannelBox=0;copyKeyCmd=-animation objects -time >0:170> -float >0:170> -option keys -hierarchy none -controlPoints 0 -shape 1 " -typ "animExport" -pr -es "U:/TestAnims/Maya Work/test.anim";
But now if I want to put this into a script (ie. take the above commands and run them) it doesn't work.
I get these messages:
// run this:
select -r pointLight1 ;
pv_performAction "U:/TestAnims/Maya Work/test.anim" "animExport";
file -op "precision=8;intValue=17;nodeNames=1;verboseUnits=0;whichRange=2;range=0:170;options=keys;hierarchy=none;controlPoints=0;shapes=1;helpPictures=0;useChannelBox=0;copyKeyCmd=-animation objects -time >0:170> -float >0:170> -option keys -hierarchy none -controlPoints 0 -shape 1 " -typ "animExport" -pr -es "U:/TestAnims/Maya Work/test.anim";
// Error: No anim curves were found. //
// Error: Could not save file. //
I tried with Echo All Commands, and the result is the same...
I really need to script an animation export, what am I doing wrong here?