Jun 21, 2018, 1:11 AM

Hi Elisa, it's indeed not possible since a child can have only one parent. One possible workaround is to have the second potential parent to store a reference to the node, and expose the node as an attribute. You'll then see the referenced node in the inspector.

For example, let's say this referenced node is called "Target", you write an accessor SBNode* MyNode::getTarget() const and you expose this attribute in the descriptor (where you expose functions, see https://documentation.samson-connect.net/developers/latest/page_introspection.html) with:

SB_ATTRIBUTE_READ_ONLY(SBNode*, MyNode, Target, "Target", "References");

By the way, maybe you mean SBStructuralGroup (to have groups and sub-groups in a structural model)? A SBNodeGroup is essentially a stored, named selection, and is not hierarchical.

Best,

Stephane