Get Children of Node

  • Hi,
    Is there a way to get for example all Residues of a given Chain?
    I tried it like this:

    SAMSON::getActiveDocument()->getNodes(indexer, SBNode::IsType(SBNode::Residue) && SBNode::GetParent()==parent);

    parent beeing a SBNode* representing the given Chain, but this writes nothing into my indexer.


  • This should work if the residues are direct children of the chain. Else, you can do:

    parent->getNodes(indexer, SBNode::IsType(SBNode::Residue));

  • yes you are right both ways work fine.
    I had a bug I was unaware of in a different position.


Log in to reply

Looks like your connection to SAMSON Connect - Forum was lost, please wait while we try to reconnect.