static void DoNotifyNodeCreated(void *param, NotifyInfo *info)
int code = info->intcode;
CharStream* out = thread_local(current_stdout);
out->printf(_T("Co3dsMax new node created!\n"));
INode *node = (INode*)param;
int i = node->NumberOfChildren();
//node->GetClassName( s );
RegisterNotification(DoNotifyNodeCreated, this, NOTIFY_NODE_CREATED);
for the 2nd parameter of RegisterNotification, when should i use (1) NULL, (2) this, or
(3) INode* node;
Register...(.., (void *)node, ... )
if i use (1) or (3), i get NULL for param in DoNotifyNodeCreated(), if i use (2) and i get runtime error when i try to get number of children in DoNotifyNodeCreated()
i need to pass MAXScript of user actions to a remote site, i think i can use MacroRecorder to force emit some kind of actions not normally emitted, but I don't know how to access the logged script strings, can help me on that?
Thanks very much!