Hiding objects in editor



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

    On 07/06/2004 at 16:04, xxxxxxxx wrote:

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

    ---------
    Quick question,
     
    I created a null object through code, I would like that object hidden in editor and render.
     
    Most obvious is this.

        
        
        
        
            BaseContainer *bcNull = onull->GetDataInstance();
        
        
        
        
            bcNull->SetLong(ID_BASEOBJECT_VISIBILITY_EDITOR,OBJECT_OFF);  
            bcNull->SetLong(ID_BASEOBJECT_VISIBILITY_RENDER,OBJECT_OFF);
        
        
        
    

    But that doesnt work, the null object still shows



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

    On 08/06/2004 at 04:24, xxxxxxxx wrote:

    This seems to work:

        
        
        BaseObject* obj = doc->GetFirstObject();  
        obj->SetParameter(DescID(ID_BASEOBJECT_VISIBILITY_EDITOR), OBJECT_OFF, 0);  
        obj->SetParameter(DescID(ID_BASEOBJECT_VISIBILITY_RENDER), OBJECT_OFF, 0);  
        EventAdd();
    


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

    On 08/06/2004 at 10:29, xxxxxxxx wrote:

    SetEditorMode() and SetRenderMode() are probably even easier. Just for completeness.



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

    On 08/06/2004 at 14:39, xxxxxxxx wrote:

    Thank you kind sir's
     
    Didn't notice the two functions to do this directly :/


Log in to reply