Notifications
Clear all
[Closed] Callback for vertex delete
Oct 19, 2011 4:29 pm
Hi All!
I just wanted to know if there is any way to know when a vertex is added or deleted on an Editable_poly?
It could be either on Maxscript or in C++.
(for maxscript I haven’t found the correct Callback name. eg: #nodePreDelete)
I am working with 3DS MAx 2008 so no use of NodeEventCallback
Do you have any idea?
3 Replies
Oct 19, 2011 4:29 pm
How about a when construct with the “topology” attribute?
From the maxscript help:
topology
Signaled when the topology of an object changes in the Modify panel, such as via a mesh smooth, optimize, or vertex delete.
Oct 19, 2011 4:29 pm
It’s callBack day!
try this
B = Box()
convertTo B editable_poly
deleteAllChangeHandlers()
test = when topology B changes obj do
( print (polyop.getNumVerts obj) )
cheers
Oct 19, 2011 4:29 pm
Thanks guy for your help! It was something like I was looking for.
Last question : can we know which of the vertex is deleted or added?