madjeter
02-10-2009, 11:58 PM
Hi, I want to make my modifier to be used on some special nodes. I have written a function to check this.
fn CanBeAddedWithMyMod node = ()
But I do not how to use it inside my modifier's script. It seems Max does not support modifier to check the node to know whether it matches requirements.
How can I solve this?
It seems I can make it via hooking modifier event like preModifierAdded and postModifierAdded. But is it clumsy? I would like to know whether there is any nice solution.
And, I find it is dangerous to delete nodes inside those event callbacks. How can I savely delete nodes after I receiving event?
Thanks!
fn CanBeAddedWithMyMod node = ()
But I do not how to use it inside my modifier's script. It seems Max does not support modifier to check the node to know whether it matches requirements.
How can I solve this?
It seems I can make it via hooking modifier event like preModifierAdded and postModifierAdded. But is it clumsy? I would like to know whether there is any nice solution.
And, I find it is dangerous to delete nodes inside those event callbacks. How can I savely delete nodes after I receiving event?
Thanks!
