MSG_GETALLASSETS calls?



  • On 28/11/2015 at 02:45, xxxxxxxx wrote:

    User Information:
    Cinema 4D Version:   14, 16 
    Platform:   Windows  ;   
    Language(s) :     C++  ;

    ---------
    i would like to know for what plugin classes MSG_GETALLASSETS is called.

    More specifically, i use Save Project, and see that it is called for ShaderData. But it appears that there is no call for MaterialData. Is this correct behavior?

    best regards,
    Michael



  • On 30/11/2015 at 02:00, xxxxxxxx wrote:

    Hello,

    it is intended behavior that this message is not sent to MaterialData::Message().

    Best wishes,
    Sebastian



  • On 30/11/2015 at 02:28, xxxxxxxx wrote:

    So if my Material plugin happened to depend on some cached data which i want copied, i'd have to implement a SceneHookPlugin just to handle that?

    (It'd probably be sensible to do so in my case since i generate one file per scene for all instances of my material. On the other hand, why this message is not sent to MaterialData is one of the many strange, mysteries of the C4D API ...)



  • On 30/11/2015 at 09:49, xxxxxxxx wrote:

    Hello,

    using a SceneHook could be a solution for your situation.

    Best wishes,
    Sebastian



  • On 01/12/2015 at 07:51, xxxxxxxx wrote:

    Okay,

    thank you.


Log in to reply