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?
On 01/06/2005 at 13:11, xxxxxxxx wrote:
I'm afraid the new construct is the recommended way to set this in R9.1. I haven't found a way to set it with SetData(). So perhaps you will need to branch into two versions to maintain backwards compatibility.
On 02/06/2005 at 21:56, xxxxxxxx wrote:
Thanks Mikael . I shall do that.