Light Object



  • 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



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


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

    ? ;)



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


Log in to reply