Hey All,
I spend yesterday even scratching my head on this one. Basically, I have a vertex color set that I need to export to a map. The command, no matter what permutation I do, fails in Maya 2011.
context = pm.artAttrPaintVertexCtx('tmpCTX')
pm.artAttrPaintVertexCtx( context, e=True, efm='rgb', eft='JPEG' )
pm.artAttrPaintVertexCtx( context, e=True, efs='C:/temp/test.jpeg')
# Error: Failed to export the attribute map.
# Traceback (most recent call last):
# File "<maya console>", line 1, in <module>
# File "C:\Program Files\Autodesk\Maya2011\Python\lib\site-packages\pymel\internal\pmcmds.py", line 98, in wrappedCmd
# res = new_cmd(*new_args, **new_kwargs)
# RuntimeError: Failed to export the attribute map. #
This also happens with maya commands as well. Has anyone ever solved this problem before?