Trying to setup some things in DefaultParameters.ini

Trying to setup some things in DefaultParameters.ini

Mr.Mxyzptlk
Advocate Advocate
393 Views
2 Replies
Message 1 of 3

Trying to setup some things in DefaultParameters.ini

Mr.Mxyzptlk
Advocate
Advocate

I use the chamfer tool a lot and I'm trying to set it to 0 segments instead of 1 as the default.

 

https://help.autodesk.com/view/MAXDEV/2021/ENU/?guid=GUID-B7059416-D90A-49D4-8DAB-7F541C850FDB

 

Using the complete example:

 

result = DefaultParamInterface.SetDefaultParamValue Editable_Poly "edgeChamferSegments" 0 persistent:true

 Is this not the right command for this? How do I get it to default to 0?

 

I managed to get the weld threshold to .001 using this:

 

result = DefaultParamInterface.SetDefaultParamValue Editable_Poly "weldThreshold" .001 persistent:true

So I'm in the correct ini file.


Thanks for any help!

0 Likes
394 Views
2 Replies
Replies (2)
Message 2 of 3

10DSpace
Advisor
Advisor

@Mr.Mxyzptlk 

 

result = DefaultParamInterface.SetDefaultParamValue Editable_Poly "edgeChamferSegments" 0 persistent:true

works for me and the .ini file is changed accordingly.  But you may have to quit Max and then restart it for new default setting in the .ini file to take effect.  Also, if you have more than 1 instance of Max running and have run the maxscript line from the listener in one instance the change would not be seen in  the other Max instance that is running.  Other than that, I don't know why it isn't working for you.

Message 3 of 3

Mr.Mxyzptlk
Advocate
Advocate

Yeah for some reason it's only working for edit poly and not my editable poly.

 

Editable poly left and edit poly right.

 

My Ini:

 

--Editable Poly
result = DefaultParamInterface.SetDefaultParamValue Editable_Poly "weldThreshold" .001 persistent:true
result = DefaultParamInterface.SetDefaultParamValue Editable_Poly "edgeChamferSegments" 0 persistent:true
--Edit Poly
result = DefaultParamInterface.SetDefaultParamValue Edit_Poly "edgeChamferSegments" 0 persistent:true

 

 

cham.JPG