The provided example from the docs gives me an error:
-----------------------
import pymel.core as pm

def importImage( fileName, fileType):
   pm.file( fileName, i=True );
   return 1

pm.fileBrowserDialog( m=0, fc=importImage, ft='image',
an='Import_Image', om='Import' )

# Error: <function callback at 0x00000000468F9898> "D:/test.tga" "image"; #
# Error: Line 1.1: Syntax error #
-----------------------

Also, what's the difference between the fileCommand (fc) and the
actionName (an)?
(fc) is "script to run on command action" and (an) is "script to be
called when the file is validated."

Sounds like almost the same thing to me. Is one of them optional?

Any help appreciated.
Cheers,

   -- Alan

-- 
http://groups.google.com/group/python_inside_maya

Reply via email to