Are you looking at fileBrowserDialog?
If you are, and are getting that error I'm going to guess you're not
on a windows system. I actually put in a bug on this once a long time
ago...And the response was that particular function was written
exclusively for WINDOWS! I was a little pissed. Now I just have one
that I wrote in python.


On May 10, 6:41 pm, Jefri Yeh <[email protected]> wrote:
> I would like to know the solution to this problem as well. I've been using a
> lot of fileBrowser function in the past, and now want to port them to pymel,
> or change it to python/pymel way to open a file dialog.
>
> Thanks,
> Jefri
>
>
>
> On Tue, Mar 16, 2010 at 4:42 AM, Justin Rosen <[email protected]> wrote:
> > Hey guys,
>
> > I was wondering if anyone was using maya's fileBrowser command within
> > maya.  It's undocumented and is way better then the cross platform
> > fileDialog garbage that comes with maya.
>
> > I'm guessing most people have rolled their own pyqt file browser, but is it
> > possible to use this from within python?  I'm getting a sytax error
>
> > def test(filename, type):
> >     print filename, type
>
> > mel.fileBrowser('test()', 'Export MDD', '', 4)
>
> > // Error:  //
> > // Error: Line 0.23: Syntax error //
>
> > Is there a better file browser in pymel, I didn't see one.  What are most
> > people using for file browsing?
>
> > Thanks,
> > Justin
>
> >  --
> >http://groups.google.com/group/python_inside_maya
>
> --http://groups.google.com/group/python_inside_maya

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

Reply via email to