PDA

View Full Version : How to get the moment AFTER a node is created?


wavestone
04-10-2012, 05:07 PM
Hello!

I am trying to track the moment after a node has been created in order to give the user the possibility to name this node instantly. I am using callbacks (#nodeCreated) but my problem is that when the user creates e.g. a sphere this callback responds as soon as the user hits the left mousebutton, but I need to get the moment right after the user has adjusted the radius and releases the mousebutton again.

I had no success in combining callbacks and mouseTracking and using the node-event-system is not what I want since it responds on nodes beeing merged as well :-/. Any ideas?

Thanks in advance
Martin

Pjanssen
04-10-2012, 05:28 PM
Use the NodeEventCallback mechanism. There you can supply a "mouseUp" parameter.
http://docs.autodesk.com/3DSMAX/15/ENU/MAXScript-Help/files/GUID-7C91D285-5683-4606-9F7C-B8D3A7CA508B.htm

If you want to avoid the event being handled when merging, you can combine it with the preMerge, postMerge general event callback.

CGTalk Moderation
04-10-2012, 05:28 PM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.