Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® Maya® / Python / Maya 2012 -----> fileDialog2 command - the fileFilter flag doesn't work...
  RSS 2.0 ATOM  

Maya 2012 -----> fileDialog2 command - the fileFilter flag doesn't work...
Rate this thread
 
61648
 
Permlink of this thread  
avatar
  • Total Posts: 3
  • Joined: 02 April 2010 12:32 PM

Hi,
I’m a technical artist, in the last week I started to develop a UI tool for Maya 2012 that export/import animation to/from XML file with Python ... When I export I didn’t have any problem,
but when I must to import my XML file I found a problem with the ‘fileDialog2’ command.

If I wrote something like that:

pathXMLFile = mc.fileDialog2( ff=’*.xml’,fileMode=1)

I have my fileDialog window , but Maya skip the flag fileFilter (’ff’) and I can only choose to load Maya *.mb and *.ma. The same thing if I put a filefilter like “All Files (*.*)” ...

I tried to found something in the internet but there isn’t too much documentation about that…
Any suggestion??



Replies: 0
avatar
  • ldunham1
  • Posted: 03 November 2011 11:07 PM

hmm i can’t replicate your problem, its working fine here:

pathXMLFile mc.fileDialog2(ff='*.xml',fm=1)


Lee Dunham | Character TD
ldunham.blogspot.com

Replies: 1
/img/forum/dark/default_avatar.png

Thanks..You are right!!...it’s just a syntax problem...It’s my my fault I switched a function for another… sorry!!
:D

Author: adrianosa82

Replied: 04 November 2011 01:23 AM