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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    How to mark a material as used?

    Scheduled Pinned Locked Moved SDK Help
    3 Posts 0 Posters 247 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 27/09/2012 at 08:44, xxxxxxxx wrote:

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

      ---------
      Hi, i have a slot where the user can drag materials which are used by my plugin. however, when the user hits delete unused materials the materials which are used in the plugin are deleted as well...

      maybe someone has a solution? in the docs i found MatAssignData and MatAssignData which sounds like what i am after, but how do i use it?

      thanks for any help, cheers,
      ello

      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 27/09/2012 at 09:13, xxxxxxxx wrote:

        Hi,

        Your plugin should respond to MSG_MULTI_MARKMATERIALS and mark (mat->SetBit(BIT_MATMARK)) your linked material.
        See the code in this post: https://developers.maxon.net/forum/topic/5051/4975_question&PID=20321#20321
        You can also refer to the class MarkMaterials documentation's page.

        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 27/09/2012 at 10:50, xxxxxxxx wrote:

          thank you very much

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