Get non-control objects



  • On 07/11/2017 at 00:30, xxxxxxxx wrote:

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

    ---------
    Hello.

    I have to parse the document's hierarchy in order to do an operation in every non-control objects.
    I need to ignore control objects such as children of cloners and arrays.
    The problem is that GetBit(BIT_CONTROLOBJECT) returns true even for Null objects (non-control objects).
    Since, they are not part of any array or cloner, shouldn't they return false in GetBit(BIT_CONTROLOBJECT) ?

    Thank you.



  • On 07/11/2017 at 08:19, xxxxxxxx wrote:

    Hi Peterakos, thanks for writing us.

    I've tried to replicate here your situation but I'm not be able to make a Null Object (not pinned under any generator )to have the BIT_CONTROLOBJECT set. Could you please shed a light on how to replicate the situation? Do you actually have a test scene showing the issue?

    At the same BIT_CONTROLOBJECT could be set (or unset) in the middle of a scene execution pipeline. For example if you're running an ObjectData and you're traversing the scene it could happen that some of the objects you encounter, might not yet have been evaluated resulting in an unpredictable state of the BIT_CONTROLOBJECT. Could it be your case?

    Last but not least, i warmly suggest to give the "C++ SDK - Active Object Dialog" plugin a go being it a useful tool when scene traversal topics take place.

    Best, Riccardo


Log in to reply