find Active Camera (Coffee or Xpresso)



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

    On 06/12/2006 at 09:48, xxxxxxxx wrote:

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

    ---------
    hi,

    Is it possible to find the active camera in coffee or xpresso ?

    i'd like to make a coffee or xpresso tag to set the visible_in_render button
    according to the active camera.

    -> a lot of possibilities !!!

    if for example i have 5 cameras in an architectural scene
    i could have 5 lightning sets which automatically switch on/off when i change the camera!
    the same for compostiting backgrounds (like sky on a plane) or object groups which are not visible and mustnt slow down the renderer.
    etx



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

    On 06/12/2006 at 14:55, xxxxxxxx wrote:

    Hi Zeorge,

    In COFFEE, you can use:

      
    var cam = doc->GetRenderBaseDraw()#BASEDRAW_DATA_CAMERA;  
    

    I'm not sure if there's a way to do it in Xpresso, other than a COFFEE node with the code above.

    HTH

    Rick


Log in to reply