Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush Python API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Light Color

    SDK Help
    0
    3
    298
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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);  
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post