I'm looking for a little guidance in getting a callback to work for what I need. I can usually limp by in maxscript using the online help but for callbacks it seems kind of cryptic. There seems to be a thousand options with little help beyond the one example (I don't want to delete the teapot I just made!). Simply put, I'm trying to have a my script do something (i.e., a function) whenever a physical camera deleted in the scene. I can add the #selectedNodesPreDelete callback to watch for node deletions and get the list of nodes deleted through callbacks.notificationParam() and then check if one of them is a physical cameras but if I then run the function the nodes aren't actually deleted yet so nothing is really changed, right? If I use the #selectedNodesPostDelete I have no idea if it was a camera that was deleted because notificationParam is undefined.
Am I going about this right? Seems like I'm missing some important element or concept about callbacks. Is there a better way?
Any help is greatly appreciated. Anyone know a good tutorial for callbacks?
Am I going about this right? Seems like I'm missing some important element or concept about callbacks. Is there a better way?
Any help is greatly appreciated. Anyone know a good tutorial for callbacks?
Comment