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
    • Recent
    • Tags
    • Users
    • Login

    help in light setting

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 349 Views
    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 Offline
      Helper
      last edited by

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

      On 09/09/2008 at 17:48, xxxxxxxx wrote:

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

      ---------
      little help in setting a light shadow type

      i tried as i looked on the sdk :

      BaseContainer *con = light->GetDataInstance();
      con->SetParameter(LIGHT_SHADOWTYPE,1);

      but give me errors ..

      and i try this for the color :

      light->SetColor(Vector(255,0,255));

      give me errors too ...

      before you tell me to see sdk examples ... i havn't them

      i download the c++ sdk html files & chm windows help
      only the structure of class & api

      but no examples ...

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

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

        On 09/09/2008 at 17:51, xxxxxxxx wrote:

        the strange thing that :

        BaseContainer *data = cube->GetDataInstance();
        data->SetBool(PRIM_CUBE_DOFILLET,true);

        works fine

        but this didn't work :

        BaseContainer *con = light->GetDataInstance();
        con->SetReal(LIGHT_SHADOWTYPE,1);

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

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

          On 09/09/2008 at 20:12, xxxxxxxx wrote:

          Some information is stored in BaseContainers, others in 'Parameters'. LIGHT_SHADOWTYPE requires you use SetParameter().

          baseObject->SetParameter(DescID(LIGHT_SHADOWTYPE), GeData((LONG)LIGHT_SHADOWTYPE_SOFT), NULL);

          It's not a Real value either, it is a drop-down list item selection (so LONG).

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

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

            On 10/09/2008 at 07:04, xxxxxxxx wrote:

            yes that works fine ...

            thanks Robert ..

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