THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 18/05/2005 at 07:27, xxxxxxxx wrote:
Cinema 4D Version: 9.1
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
with rel 9.1 my plugins that create materials no long work correctly. I am unable to specify the color. I changed the old plugins to use the new AllocMaterial(Mmaterial) function but that did not fix the problem. I can change parameters such as brightness with:
but the code to set the color does not work any more. (It used to work before 9.1).
col_c->SetData(CH_COLOR, vector(0.5, 0.1, 0.1));
I have found a workaround using the new Description code:
mat#MATERIAL_COLOR_COLOR = vector(0.5, 0.1, 0.1);
but would like to know how to set the color using SetData().
anyone any ideas?