PDA

View Full Version : set noWarning in CollapseNode


lellis2k
05-15-2009, 10:29 AM
Hey Guys,

simple question that I just can't figure out:

I want to set the noWarning to true, how do I do it?

Here's the maxscript help:
<bool>maxOps.CollapseNode <node>node <boolean>noWarning

Collpases the complete modifier stack of the node.When noWarning is set to true,
no prompt will be issued. Returns true if successful and false otherwise.


Here's my code:
maxOps.CollapseNode $ noWarning=true
which returns an error.

Thanks

Zbuffer
05-15-2009, 10:47 AM
Hi,

Just use

maxOps.CollapseNode $ true

lellis2k
05-15-2009, 11:00 AM
Thanks but I already tried that and the warning still appears, here's the warning I get:
http://img31.imageshack.us/img31/1339/49381826.png

However seeing as they are xrefs im going to use the following instead :
objXRefMgr.MergeXRefItemsIntoScene $

ZeBoxx2
05-15-2009, 12:40 PM
The xref code probably doesn't check for the noWarning flag (as opposed to, say, the modifier stack warnings).

You'd either have to do what you're doing, or use dialogMonitorOps+UIAccessor to automatically choose yes (or no) on that dialog.

Edit: oh, one more thing you could try, but not sure if prompt is hooked into it: setQuietMode true

CGTalk Moderation
05-15-2009, 12:40 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.