On 10/04/2014 at 11:21, xxxxxxxx wrote:
User Information:
Cinema 4D Version: R15 Stud
Platform: Mac OSX ;
Language(s) : C++ ;
---------
I'm trying to clone a material from one document to another.
If I use the following...
BaseMaterial *newMaterial = (BaseMaterial * ) oldMaterial->GetClone(COPYFLAGS_0, NULL);
...I get a copy of the material in the target document but the bitmap which is used in the texture for the colour (color for our overseas friends) channel is not copied across. Thus the new material is missing its colour channel texture bitmap.
Do I have to separately clone the bitmaps and if so how do you iterate a list of bitmaps used in the source document? This seems unlikely.
I have a feeling that it is my COPYFLAGS that is wrong but I don't know for sure.