Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware 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
    • Unread
    • Recent
    • Tags
    • Users
    • Login

    Hiding objects in editor

    SDK Help
    0
    4
    389
    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
      Helper
      last edited by

      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

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

        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();
        
        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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.

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

            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 😕

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