Iam new to pymel and I am trying to figure out the best way to export
a obj with pymel.

The command I am trying to replitace from python in Maya is:

cmds.file("/path/to/
file",pr=1,typ="OBJexport",es=1,op="groups=1;ptgroups=1;materials=1;smoothing=1;normals=1")

I was trying things for with pymel

from pymel import *
name = "path/to/file"
type = "OBJexport"


file(name, pr = 1, type, es = 1)   etc....

Which does not work.

I know pymel has certain built-ins to handle things like this.

I am assuming the saveAs() function.  But I am not sure how to tailor
it to OBJ.

Any help would be greatly appreciated.  I am putting together a script
to export all the geometry as separate obj's to send them to Nuke.
Not and obj sequence, but just all the geo broken into separate obj's.

Thanks

Justin

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

Reply via email to