How to mark a material as used?



  • 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



  • 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://plugincafe.maxon.net/topic/5051/4975_question&PID=20321#20321
    You can also refer to the class MarkMaterials documentation's page.



  • 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


Log in to reply