Home Technical Talk

[MaxScript] Need help with Chamfer Segments

Br0ken
polycounter lvl 3
Offline / Send Message
Br0ken polycounter lvl 3
Hi all!
Can someone help me modify this script to prevent negative value? Lowest value that I need is 1, not 0 or -1.

(
local currMod = modPanel.getCurrentObject()
(
if (classof currMod) == Editable_Poly then ($.edgeChamferSegments -= 1)
else ($.modifiers[#Edit_Poly].edgeChamferSegments -= 1)
)
)

Replies

Sign In or Register to comment.