File Notification Codes work incorrect [C++]

File Notification Codes work incorrect [C++]

Anonymous
Not applicable
770 Views
3 Replies
Message 1 of 4

File Notification Codes work incorrect [C++]

Anonymous
Not applicable

Hello! In 3ds Max 2018 File Notification Codes like POST_OPEN_FILE, POST_OPEN_FILE_PROCESS, POST_OPEN_FILE_PROCESS_FINALIZED work correctly. When scene is loaded, my process starts work like i want. But i stuck in 3ds Max 2020. In my code there is callback on POST_OPEN_FILE_PROCESS and while scene opening my code starts work (should when scene load ends), but some objects in scene still not loaded. As result, some methods in my code can’t get object’s params and 3ds max crashes. I try also with POST_OPEN_FILE_PROCESS_FINALIZED and POST_OPEN_FILE.

0 Likes
771 Views
3 Replies
Replies (3)
Message 2 of 4

istan
Advisor
Advisor

?

3ds Max notification messages registered with RegisterNotification() start with "NOTIFY_xx" ?

0 Likes
Message 3 of 4

Anonymous
Not applicable

Yes, thats right

0 Likes
Message 4 of 4

denisT.MaxDoctor
Advisor
Advisor

 


@Anonymous wrote:

File Notification Codes like POST_OPEN_FILE, POST_OPEN_FILE_PROCESS, POST_OPEN_FILE_PROCESS_FINALIZED ...


all these callbacks are supported by MXS general callbacks system. Do these MXS callbacks work the same way as your c ++? (means wrong in MAX 2020). If you think that something is working wrong with c ++, it is easy to check using MXS ... I think that the problem is in your code.

 

I have several my own c++ SDK tools that use POST_OPEN_FILE and I don't see a difference in how they work for MAX 2016 and 2020.

 

0 Likes