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

    problem with light container

    SDK Help
    0
    3
    342
    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 17/03/2003 at 09:33, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.012 
      Platform:   Windows  ;   
      Language(s) :     C++  ;

      ---------
      suprisingly just reading out the BaseContainer of an light object (Olight) does not work for me. i use this method to read out containers of almost everything and it does work, but not for the lights. anyone got an idea why?
      the code ..

          
          
          
          
           switch (LightObject->GetData().GetLong (LIGHT_TYPE))  
           {  
            case (LIGHT_TYPE_OMNI) :  
              ....  
            case (LIGHT_TYPE_SPOT) :  
              ....   
            case (LIGHT_TYPE_PARALLEL) :  
              ....
          
          
          
          
            default:
          
          
          
          
             break;  
           }  
          
          
          
          
          
          it neither works for the light color / brightness nor anything else. all i get are default container values.
          
          
          
          
          thanks in advance
      
      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 17/03/2003 at 10:57, xxxxxxxx wrote:

        okay. got it to work with
        LightObject->GetParameter (DescID (LIGHT_TYPE) .... ) ...
        but .... why ? 🙂

        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 18/03/2003 at 10:03, xxxxxxxx wrote:

          Some parameter are only accessible with GetParameter() and SetParameter() since they aren't stored in the object container.

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