Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Recent
    • Tags
    • Users
    • Login

    Bug? TYPE_LOAD called after new material

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 345 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H Offline
      Helper
      last edited by

      THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

      On 17/11/2008 at 11:32, xxxxxxxx wrote:

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

      ---------
         Hi,

      Using a SceneHook I found that when a new material is created, MSG_DOCUMENTINFO_TYPE_MATERIAL_INSERT is called as expected.
      But also, directly after that, MSG_DOCUMENTINFO_TYPE_LOAD is called. I thought MSG_DOCUMENT_TYPE_LOAD should only be called after loading a new C4D- document!

      Can anyone confirm that this a bug in C4D? Our plugin relies on some operations after loading a new document, but now gets confused after new materials are created.

      best regards,
      mcduck

      1 Reply Last reply Reply Quote 0
      • H Offline
        Helper
        last edited by

        THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

        On 18/11/2008 at 02:07, xxxxxxxx wrote:

        I think MSG_DOCUMENTINFO_TYPE_LOAD is called because of the material preview which loads a document.

        cheers,
        Matthias

        1 Reply Last reply Reply Quote 0
        • H Offline
          Helper
          last edited by

          THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

          On 18/11/2008 at 03:27, xxxxxxxx wrote:

          Quote: Originally posted by Matthias Bober on 18 November 2008
          >
          > * * *
          >
          > I think MSG_DOCUMENTINFO_TYPE_LOAD is called because of the material preview which loads a document.
          >
          >
          >
          > * * *

          I can add that this unexpected MSG_DOCUMENTINFO_TYPE_LOAD is only called at inserting the first new material.
          Any following material or texture loading, will not cause a MSG_DOCUMENTINFO_TYPE_LOAD.
          (Just a MSG_DOCUMENTINFO_TYPE_MATERIAL_INSERT, as it should be)

          Are you sure that MSG_DOCUMENTINFO_TYPE_LOAD isn't just meant for c4d -documents (and not any other type of file/document loaded) ?

          If not, then could you point to a reliable way to run code when a c4d-document is loaded?

          regards,
          mcduck

          1 Reply Last reply Reply Quote 0
          • H Offline
            Helper
            last edited by

            THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

            On 19/11/2008 at 06:56, xxxxxxxx wrote:

            Howdy,

            Poll for the message MSG_MULTI_DOCUMENTIMPORTED to run code only when the document is loaded. ;o)

            Adios,
            Cactus Dan

            1 Reply Last reply Reply Quote 0
            • First post
              Last post