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.

Change Handlers and modifier attributes (MaxScript)

Change Handlers and modifier attributes (MaxScript)

stalkerportal1
Participant Participant
999 Views
3 Replies
Message 1 of 4

Change Handlers and modifier attributes (MaxScript)

stalkerportal1
Participant
Participant

seems like Change Handlers is broken in max 2021.1 for modifiers attribute - "name" (in max 2016 - 2019 works)

example:

obj = box()
deleteAllChangeHandlers id: #CH_test
modif = Bend()
when name modif change id:#CH_test do
(
print "1"
)
addModifier obj modif
select obj

-----------

Changing modifier name from modpanel not trigger change handler. With objects works - ok, but not with modifiers.

 
0 Likes
1,000 Views
3 Replies
Replies (3)
Message 2 of 4

denisT.MaxDoctor
Advisor
Advisor

that this does not work is very unlikely ... you are doing something wrong.

try execute:

 

(
	b = bend()
	h = when name b changes do (print ("name:" + b.name))
	b.name = "the bend" 
)

 

it must return:

 

"name:the bend"
"the bend"

 

 

 

 

does it work? it has to print on Undo/Redo as well

 

 

 

0 Likes
Message 3 of 4

stalkerportal1
Participant
Participant

I checked it in max 2021.1 and change handler not works as expected 😞

max 2021.1 result(not correct):

stalkerportal1_0-1592245120618.png

 

max 2019.3 result(correct):

Screenshot_1.jpg

 

 

0 Likes
Message 4 of 4

denisT.MaxDoctor
Advisor
Advisor

@stalkerportal1 wrote:

I checked it in max 2021.1 and change handler not works as expected 😞

max 2021.1 result(not correct):

 

max 2019.3 result(correct):

 


This is very bad. Autodesk should tell us what is going on.