Notifications
Clear all

[Closed] Managed SDK assemblies, taking it one step further?

I’ve been messing around a bit with managed .NET SDK assemblies, and they seem to expose some interesting aspects of the SDK. For example using the MaxNotificationListener class to catch any scene event directly in .NET is really easy with the ManagedServices assembly:

private MaxNotificationListener listener { get; set; }

//Sent when a node is created (callParam is pointer to node)
private const int NOTIFY_NODE_CREATED = 0x0000003A;    				

public TestClass()
{
    this.listener = new MaxNotificationListener(NOTIFY_NODE_CREATED);
    this.listener.NotificationRaised += new EventHandler<MaxNotificationEventArgs>(Listener_NotificationRaised);
}
 
void Listener_NotificationRaised(object sender, ManagedServices.MaxNotificationEventArgs e)
{
     MaxscriptSDK.ExecuteMaxscriptCommand("messagebox \"node created\"");
}

But now I wonder, can we take this to the next level? It’d be awesome if it was equally easy to get some info on the created node (using the pointer on the MaxNotificationEventArgs somehow?). Being able to traverse the entire scene would be great as well.
Has anyone tried to do this, or any ideas on where to start?