Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    DocumentInfoData::data

    SDK Help
    0
    4
    405
    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
      Helper
      last edited by

      On 02/11/2015 at 10:22, xxxxxxxx wrote:

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

      ---------
      Hi,

      is there a list or something that shows what the DocumentInfoData::data pointer should be cast to according to each message type? The docs are silent about this just saying that this depends on DocumentInfoData::type.

      Thanks

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

        On 02/11/2015 at 10:26, xxxxxxxx wrote:

        I am interested to know the same for MessageFilter::data as well. Same issue.

        Thanks

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

          On 03/11/2015 at 03:22, xxxxxxxx wrote:

          Hi,

          Originally posted by xxxxxxxx

          Is there a list or something that shows what the DocumentInfoData::data pointer should be cast to according to each message type? The docs are silent about this just saying that this depends on DocumentInfoData::type.

          In the documentation for DocumentInfoData::type there's a link to MSG_DOCUMENTINFO_TYPE enum.
          In this enum list data is only mentionned for these 2 DocumentInfo messages:

          • MSG_DOCUMENTINFO_TYPE_BEFOREMERGE
          • MSG_DOCUMENTINFO_TYPE_MAKEPROJECT

          For MSG_DOCUMENTINFO_TYPE_BEFOREMERGE  data points to a MSG_DOCUMENTINFO_TYPE_BEFOREMERGE_RESULT enum.
          As for MSG_DOCUMENTINFO_TYPE_MAKEPROJECT the documentation isn't accurate: data actually points to a DocumentInfoMakeProj struct (contains the source and destination files plus allow copy and GUI states).

          Originally posted by xxxxxxxx

          I am interested to know the same for MessageFilter::data as well. Same issue.

          MessageFilter::data is basically the same as the data parameter in NodeData::Message() for all other messages except this one.  The pointed data depends on the MSG MessageFilter::type.

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

            On 03/11/2015 at 03:43, xxxxxxxx wrote:

            Excellent. Haven't seen the mentioned text. Thanks! Solved.

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