R13: Fold and unfold the tree in object manager

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

On 21/09/2011 at 05:03, xxxxxxxx wrote:

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

---------
Hello,

if a add a baseobject to the base document with InsertObject() as a child, the new sub tree is closed. I like to unfold this sub tree but I don't know how?:cry:
:cry:
regards
Marky

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

On 21/09/2011 at 08:44, xxxxxxxx wrote:

Please have a look at these bits:

NBIT_OM1_FOLD
NBIT_OM2_FOLD
NBIT_OM3_FOLD
NBIT_OM4_FOLD

Enable/disable these bits to fold/unfold objects in the object manager (OM). There are four bits because there are up to four OMs.

Example, toggles the fold status:

  
op->ChangeNBit(NBIT_OM1_FOLD, NBITCONTROL_TOGGLE);  
op->Message(MSG_CHANGE);  
EventAdd();  

cheers,
Matthias