Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Possible to suppress warning dialog when using MEL 'File' command?

Possible to suppress warning dialog when using MEL 'File' command?

Anonymous
Not applicable
680 Views
1 Reply
Message 1 of 2

Possible to suppress warning dialog when using MEL 'File' command?

Anonymous
Not applicable
I have a Maya scene holding a rigged character performing animation. Through use of a Script Node, I want to load an OBJ format geometry, and attach it to the rig, so that geometry is used in the animation.

This is the Mel I'm using to load the OBJ:

file -i "/Users/me/mayaWork/autoAnim/obj/geometry.obj"

...where "autoAnim" is the Maya Project. This works, but it generates a warning dialog that says:

"Your OBJ file contains faces shared by multiple groups Maya cannot create multiple objects for this file. A single mesh object will be created instead. The OBJ group information will be captured in Maya sets."

I have additional Mel commands in the Script Node that do not get executed, apparently because this warning dialog requires user interaction (clicking "OK"). Any way to suppress this warning so the additional commands get executed?
0 Likes
681 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
I must have had other errors causing the follow-on commands to fail, because after noticing and fixing a typo, it all just started working.
Also, nice to see that command line batch renders of the scene work just file.
0 Likes