Light Color



  • 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



  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    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);  
    


  • THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

    On 13/01/2004 at 02:29, xxxxxxxx wrote:

    Thank you muhmac!
    Your solution fits perfectly!
    Thanks a million!
     
    Tiescher


Log in to reply