Message 1 of 2
Possible to suppress warning dialog when using MEL 'File' command?

Not applicable
04-23-2012
05:33 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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?
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?