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

    Add Material to Active Layer in Material Manager

    Cinema 4D SDK
    c++
    2
    2
    284
    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.
    • A
      antonia.nyagolova
      last edited by

      Hello,

      I want to be able to add a material to the currently selected Layer in the Material Manager, just like Cinema’s materials do. I’ve tried getting the Layer hierarchy, traversing it and looking for the BIT_ACTIVE bit being raised, but that only works for Layer selection in the Attribute Manager, not the Material Manager.
      Can you suggest anything that will help me?

      Thank you.

      ferdinandF 1 Reply Last reply Reply Quote 0
      • ferdinandF
        ferdinand @antonia.nyagolova
        last edited by ferdinand

        Hello @antonia-nyagolova,

        Welcome to the Maxon developers forum and its community, it is great to have you with us!

        Getting Started

        Before creating your next postings, we would recommend making yourself accustomed with our forum and support procedures. You did not do anything wrong, we point all new users to these rules.

        • Forum Overview: Provides a broad overview of the fundamental structure and rules of this forum, such as the purpose of the different sub-forums or the fact that we will ban users who engage in hate speech or harassment.
        • Support Procedures: Provides a more in detail overview of how we provide technical support for APIs here. This topic will tell you how to ask good questions and limits of our technical support.
        • Forum Features: Provides an overview of the technical features of this forum, such as Markdown markup or file uploads.

        It is strongly recommended to read the first two topics carefully, especially the section Support Procedures: Asking Questions.

        About your First Question

        I am not quite sure what you mean by 'Active Layer in [the] Material Manager'? Do you mean the tabs to filter materials by layer in the Material Manager?

        93afa897-ab3d-41ca-9d27-f0de1545ffa7-image.png

        We generally do not expose managers/UIs in our API, so you unfortunately cannot get hold of that information.

        Cheers,
        Ferdinand

        MAXON SDK Specialist
        developers.maxon.net

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