|
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??
|
|
|
|
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
|
|
|