Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
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:
User Information: Cinema 4D Version: 8.200 Platform: Windows ; Language(s) : C.O.F.F.E.E ;
--------- Hi! 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. Regards, Tiescher
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:
var bc; var color; bc = yourlight->GetContainer(); color = bc->GetData(LIGHT_MAIN_F); bc = yourotherlight->GetContainer(); bc->SetData(LIGHT_MAIN_F,color); yourotherlight->SetContainer(bc); yourotherlight->Message(MSG_UPDATE);
On 13/01/2004 at 02:29, xxxxxxxx wrote:
Thank you muhmac! Your solution fits perfectly! Thanks a million! Tiescher