Just as a follow up, how does one suppress the warning messages that
may appear? I'm trying to run a script that batch converts a list of
Maya files to fbx and any time a warning pops up it freezes the
process. Most warnings I don't care about...
On Monday, September 15, 2014 6:35:42 PM, Yi Liang Siew wrote:
Most of it was back when I was dealing with passing arguments to
FBXExport; a lot of what I remember getting was TypeErrors and I was
sick of dealing with it (since I had a Qt Gui and was already doing a
couple of type conversions here and there), so what I ended up doing
was just writing my own method to take in simple bool args and return
the correct FBXExport strings to be evaluated.
Also some FBXExport methods that don't work between versions of Maya,
if I use mel.eval, it's easier for me to catch them too. (e.g.
FBXExportReferencedAssetsContent is 2014-specific)
I don't really have any isolated code samples on hand unfortunately...
On 9/15/2014 3:23 PM, Geordie Martinez wrote:
What kind of weirdness? do you have any stack traces or examples? I'd
like to see if it's an unknown bug or if there are problems like
having an argument called "import" or something that will break python.
behind the scenes pm.mel is doing mel.eval so there shouldn't any
weirdness.
On Mon, Sep 15, 2014 at 3:15 PM, Yi Liang Siew <soni...@gmail.com
<mailto:soni...@gmail.com>> wrote:
Been doing a ton of stuff with FBXExport lately. I recommend just
going through mel.eval(). I've experienced a lot of weird stuff
when trying to do it through pymel.
On 9/15/2014 2:55 PM, Eric Thivierge wrote:
Awesome thanks.
On Monday, September 15, 2014 5:54:22 PM, Geordie Martinez wrote:
there is no pymel api for FBX to my knowledge, BUT
you can python-ify your calls by using pm.mel
then the mel command is python. try it.
import pymel.core as pm
pm.loadPlugin("fbxmaya") # LOAD PLUGIN
# EXAMPLE SYNTAX
# pm.*mel*.FBXCommand(args)
#for example
pm.mel.FBXExport(f="FILENAME")
pm.mel.FBXImport(f="FILENAME",t="TAKE")
On Mon, Sep 15, 2014 at 1:59 PM, Eric Thivierge
<ethivie...@hybride.com <mailto:ethivie...@hybride.com>
<mailto:ethivie...@hybride.com
<mailto:ethivie...@hybride.com>>> wrote:
Looking around in the PyMel docs not finding too much
info on
FBXExports via PyMel. Anyone got any info?
Thanks in advance,
Eric T.
--
You received this message because you are subscribed
to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving
emails from it,
send an email to
python_inside_maya+__unsubscr...@googlegroups.com
<mailto:python_inside_maya%2b__unsubscr...@googlegroups.com>
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com
<mailto:python_inside_maya%252bunsubscr...@googlegroups.com>>.
To view this discussion on the web visit
https://groups.google.com/d/__msgid/python_inside_maya/__5417533C.8050801%40hybride.com
<https://groups.google.com/d/msgid/python_inside_maya/5417533C.8050801%40hybride.com>__.
For more options, visit
https://groups.google.com/d/__optout
<https://groups.google.com/d/optout>.
--
You received this message because you are subscribed to
the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails
from it, send
an email to
python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>
<mailto:python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4h48ZBiHY%3Dxhc3QnchnEGgtGBBfFyGzE7bb4dJRWSJZ4Q%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CABPXW4h48ZBiHY%3Dxhc3QnchnEGgtGBBfFyGzE7bb4dJRWSJZ4Q%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
---
This email is free from viruses and malware because avast!
Antivirus protection is active.
http://www.avast.com
--
You received this message because you are subscribed to the
Google Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya%2bunsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/54176505.9070205%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it,
send an email to python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/CABPXW4icfM%3DAkY2C%2BevTTv%2BXwoA_KJqqKCWtPG6x3Hy%2BDQJWXQ%40mail.gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/CABPXW4icfM%3DAkY2C%2BevTTv%2BXwoA_KJqqKCWtPG6x3Hy%2BDQJWXQ%40mail.gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
------------------------------------------------------------------------
<http://www.avast.com/>
This email is free from viruses and malware because avast! Antivirus
<http://www.avast.com/> protection is active.
--
You received this message because you are subscribed to the Google
Groups "Python Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to python_inside_maya+unsubscr...@googlegroups.com
<mailto:python_inside_maya+unsubscr...@googlegroups.com>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/541769BE.4000108%40gmail.com
<https://groups.google.com/d/msgid/python_inside_maya/541769BE.4000108%40gmail.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Python
Programming for Autodesk Maya" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to python_inside_maya+unsubscr...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/python_inside_maya/54199D61.7040909%40hybride.com.
For more options, visit https://groups.google.com/d/optout.