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
    • Register
    • Login

    Light Object

    Scheduled Pinned Locked Moved SDK Help
    4 Posts 0 Posters 315 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 24/01/2005 at 14:07, xxxxxxxx wrote:

      User Information:
      Cinema 4D Version:   8.100 
      Platform:      
      Language(s) :   C.O.F.F.E.E  ;

      ---------
      I can create a Menuplugin with all the Dialog i need, but could somebody please explain to me, how i can create a new Light in my Scene with Coffee?
      I've come as far as:

      var Licht = new(LightObject);
      Licht->SetName("Test");
      var PositionsVektor = vector(0,0,0);
      Licht->SetPosition(PositionsVektor);

      but how do i make it actually show up in my scene?

      Thank You very much

      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 24/01/2005 at 14:38, xxxxxxxx wrote:

        You have to actually add it to your document now
        use BaseDocument::InsertObject to do this

          
        [bool] InsertObject([BaseObject] op, [[BaseObject] parent = NULL],  
                             [[BaseObject] prev = NULL]);  
        

        example

          
        doc->InsertObject(Licht);  
        
        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 24/01/2005 at 14:41, xxxxxxxx wrote:

          How about:

          GetActiveDocument()->InsertObject(Licht);

          ? 😉

          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 24/01/2005 at 23:38, xxxxxxxx wrote:

            Thank You very much 🙂
            I'm taking my first Steps with Coffee (as You might have guessed) and got lost on the way 😉

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