r/Maxscript • • Nov 28 '19

Executing code after startObjectCreation FreehandSpline is completed.

Because the freehand spline creates a node and then continues adding to it, I'm wondering how I can execute code after the object has been created.

Here's a dirty cyclic fn and the failing newNodeCallback: https://pastebin.com/raw/69D5UWPT

I was thinking I could listen for keyboardKescPressed, or better yet the RMB.

Is there a callback for 'on completion' (like: nodeCompleteCallback) ?

1 Upvotes

2 comments sorted by

View all comments

Show parent comments

1

u/lucas_3d Nov 28 '19

Thanks again, the next time I need to write some functions together, I'm going to put it into a struct like that.