On 04/07/2014 at 06:59, xxxxxxxx wrote:
Cinema 4D Version: 14
Platform: Windows ;
Language(s) : C++ ;
I have an object plugin that generates 2 polygonal objects, inserted one under the other.
Each of these objects is coming from a function. The GetVirtualObjects function returns one of them, while the other is inserted under the return object, thus generating the 2 objects.
My question is, how do I assign a different material to each object?
I know that I need to create a BaseMaterial for each, but where do I create those? If I create the materials in GetVirtualObjects and insert them into the document, they will be inserted infinitely in a loop.
Where and how do I create the Texture Tag for each of these objects?
How can I assign each material to the respective texture tag?
Any help would be greatly appreciated.