Add Material to Active Layer in Material Manager
-
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.
-
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?
We generally do not expose managers/UIs in our API, so you unfortunately cannot get hold of that information.
Cheers,
Ferdinand