PDA

View Full Version : export animation clip with pyhon


wigi
02-22-2010, 03:35 AM
how to export a animation clip file from visor into MAYA ASCII with the python code
Here is the code I'm using but doesnt works..
import maya.cmds as cmds
cmds.select('clip1')
cmds.file('fileName.ma', type='mayaAscii', exportSelected=True, channels=True, constructionHistory=True)

the problem is fileName.ma is doesnt have animation value,or in the maya Ascii doest have "clipLibrary"



it's difference when i select the clip in visor and right click export to maya Ascii.. and the size of the file is difference too..
there is something wrong with my code?
thx
wigi

CGTalk Moderation
02-22-2010, 03:35 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.