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.

how i select modifiers without warning box

how i select modifiers without warning box

idwpqkf
Explorer Explorer
619 Views
5 Replies
Message 1 of 6

how i select modifiers without warning box

idwpqkf
Explorer
Explorer

I have objects that "editable mesh" with "Unwrap UVW".
and i want to add edite_poly on modifiers baseobject.
like this
>Unwrap UVW
>Edit Poly
>Editable Mesh
so i wrote this script but i can not work this
because warning box .
how i make working whitout script skip warning box.

---script ---

fn AddPolyOnMeshBaseFn Obj =
(
max modify mode
select Obj
modPanel.setCurrentObject Obj.baseObject
modPanel.addModToSelection (Edit_Poly ())
)

for n in selection do AddPolyOnMeshBaseFn n

0 Likes
620 Views
5 Replies
Replies (5)
Message 2 of 6

denisT.MaxDoctor
Advisor
Advisor

 

 

 

addModifier obj (Edit_Poly ()) before:obj.modifiers.count

 

 

 

but it's better to press the "Do not show this message again" box once 😉

 

0 Likes
Message 3 of 6

Serejah
Advocate
Advocate

@denisT.MaxDoctor  написал (-а):

 

but it's better to press the "Do not show this message again" box once 😉

 


This message pops only if TopoMessage is equal to 1.

getINISetting (GetMAXIniFile()) "Performance" "TopoMessage"

 

Denis, do you know how to force update the settings? Cause if I do this nothing would change, but if I change the setting from the gui then it updates successfully
setINISetting (GetMAXIniFile()) "Performance" "TopoMessage" "0"

0 Likes
Message 4 of 6

denisT.MaxDoctor
Advisor
Advisor

you can set the setting and reload the INI file... this will update the scene.

but reloading the INI can cause some side effects and I don't recommend doing it while in session.

 

I was looking into this issue a long time ago... found that there is a system flag for this, but the SDK doesn't provide methods to read and change it.
I remember that I couldn't find anything better than to "provoke" this message box and set "do not show again" with DialogMonitorOPS.

Message 5 of 6

denisT.MaxDoctor
Advisor
Advisor

Frankly, this is a rudimentary message that is of little use to the user...
Some type of modifiers must tell the system whether their internal data depends on the topology of the modified object. What they do.
You can notice that the message appears not when you try to change something in the topology, but when you go to the area where you can change it. Well, what's the point in that?
Anyway, nothing can stop you from changing, and changing the topology is far from a fact that will affect the work of the modifier.
Sure I always disable this warning.

0 Likes
Message 6 of 6

denisT.MaxDoctor
Advisor
Advisor

By the way, with the help of the SDK you can determine if there are such modifiers in the object's stack... Good idea! Someday I will find time and add these methods to my MXS extension. 😉

0 Likes