Unable to specify Material Color
-
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:
User Information:
Cinema 4D Version: 9.1
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;---------
<SCRIPT language=javascript>postamble();_<_Script_>_ hi,
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:
col_c->SetData(CH_BRIGHTNESS, 0.5);
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? -
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
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.
-
THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 02/06/2005 at 21:56, xxxxxxxx wrote:
Thanks Mikael . I shall do that.