THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED
On 12/01/2004 at 03:55, xxxxxxxx wrote:
Cinema 4D Version: 8.200
Platform: Windows ;
Language(s) : C.O.F.F.E.E ;
I´ve just started to learn coffee, and now I´m trying to write an expression that makes two lights have the some color.
Can someone of you tell me how I can get the color of a light in coffee.
I would be very thankful for a detailed instructuion since I have only little experience in coffee-programming.
On 12/01/2004 at 14:55, xxxxxxxx wrote:
I assume that you know how to get your light object.
The rest is quite simple:
bc = yourlight->GetContainer();
color = bc->GetData(LIGHT_MAIN_F);
bc = yourotherlight->GetContainer();
On 13/01/2004 at 02:29, xxxxxxxx wrote:
Thank you muhmac!
Your solution fits perfectly!
Thanks a million!