I ran into a similar issue, I think the main problem was Maya versions..... 8.5 and 2008 are broke, 2008 ext2 works http://groups.google.com/group/python_inside_maya/browse_thread/thread/a8fdfe8cc2e398df/97154d121942bcc2?lnk=gst&q=directory#97154d121942bcc2
On Oct 27, 1:48 pm, sberger <[EMAIL PROTECTED]> wrote: > What's the joke? i am pretty sure I have tried commenting this file > command and put only prints and it still failed... what the ... ?? > > On Oct 27, 3:43 pm, "kurian os ™ ®കോപ്പിയടിച്ചാല്©ഗോതമ്പുണ്ട!" > > <[EMAIL PROTECTED]> wrote: > > 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. -~----------~----~----~----~------~----~------~--~---
