Try This
import maya.cmds as cmds
def importImage(fileName, fileType):
#cmds.file( fileName, i=True );
print "I am here\n"
print fileName
return 1
cmds.fileBrowserDialog( m=0, fc=importImage, ft='image',
an='Import_Image', om='Import' )
On Mon, Oct 27, 2008 at 9:29 PM, sberger <[EMAIL PROTECTED]> wrote:
>
> Anyone found out how to make the fileBrowserDialog work in python?
>
> The example in the maya python docs is not working.
>
> import maya.cmds as cmds
>
> def importImage( fileName, fileType):
> cmds.file( fileName, i=True );
> return 1
>
> cmds.fileBrowserDialog( m=0, fc='importImage', ft='image',
> an='Import_Image', om='Import' )
>
> All the solutions I found on the net are not working.
>
> Thanks
> >
>
--
സ്നേഹിക്കയില്ല ഞാന്
നോവുമാത്മാവിനെ സ്നേഹിച്ചിടാത്തൊരു
തത്വശാസ്ത്രത്തെയും
--~--~---------~--~----~------------~-------~--~----~
Yours,
Maya-Python Club Team.
-~----------~----~----~----~------~----~------~--~---