Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Inherit containers notification

Inherit containers notification

elpie89
Advocate Advocate
644 Views
3 Replies
Message 1 of 4

Inherit containers notification

elpie89
Advocate
Advocate

I'm trying to find with Notification max raise when a container is appended into the scene.

from max plus I'm using this right now:

 

def handleNotification(code):
print "container added"
print "Notification handled: ", code

MaxPlus.NotificationManager.Register(MaxPlus.NotificationCodes.FilePostMerge2, handleNotification)
print "registering"

 But this is a generic merge notification and I expect something more specific.

In other how can I get witch container has been added?

0 Likes
Accepted solutions (1)
645 Views
3 Replies
Replies (3)
Message 2 of 4

elpie89
Advocate
Advocate

really no one?

0 Likes
Message 3 of 4

drew_avis
Autodesk
Autodesk
Accepted solution

What about the sceneNodeAdded callback?

http://help.autodesk.com/view/3DSMAX/2020/ENU/?guid=GUID-C1F6495F-5831-4FC8-A00C-667C5F2EAE36#GUID-C...

 

I haven't tested this and whether it gets triggered on a merge, but it would be worth trying as it returns the node, which is what I think you want.

 

Hope that helps,

Drew



Drew Avis
Content Experience Designer
0 Likes
Message 4 of 4

elpie89
Advocate
Advocate

Thanks, this actually worked.

Now I found a bug in containers I think

but this has nothing to do with this question

I will open a new question for this new one.

Thanks

0 Likes