Notifications
Clear all

[Closed] material change event

Hej, As I searched through this have been already issued on per material bases.

Now I would like to do that way that if any material changes in the material editor then it would call a function.

Of ocurse I could create 24 change handler for all material slots, but this is odd, and also it could take valuable resource and could slow down the general response time of 3dsmax.
The only advantage of this method would be that I would immadiately know which material changed.

So my question would be that is there any way to handle this at firts globally – and then I would just search through the mat library to check the changes?

Thank you.

B

1 Reply

well maybe it was an odd post, I think I just stick to the 24 handlers.
Its not that much slowdown.

well at least a little hint: when material editor slot changes instead of using a complicated time filter method in my opinion it is better to check on active material slot. So if its id is different than the previous id, then the material slot selection activated the changle handler event, so it can be ignored.