When I export OBJs with materials I get errors related to Mental Ray attributes that don't exist (I haven't used Mental Ray for years and the plugin isn't loaded). I'm using Maya 2019.1, and this error occurs using the MEL version of the command as well.
[code]
cmds.file(dir + '{:03d}.obj', force = True, typ="OBJexport", es=True, op="groups=0; ptgroups=0; materials=1; smoothing=0; normals=0")
[/code]
I get this error:
[code]
Error: line 1: No object matches name: .ambientColor
Error: line 1: No object matches name: .normalCamera
[/code]
How can I export in a way that doesn't try to use these Mental Ray attributes?