Skip to content
0
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
  • Recent
  • Tags
  • Popular
  • SAMSON Connect
  • Get SAMSON
Collapse
SAMSON Forum
  1. Home
  2. Develop
  3. Apps
  4. Get Children of Node

Get Children of Node

Scheduled Pinned Locked Moved Apps
3 Posts 2 Posters 3.6k Views
  • 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.
  • M
    M
    Maximilian
    wrote on last edited by
    #1

    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.

    br,
    Max

    1 Reply Last reply
    0
    • StephaneS
      StephaneS
      Stephane
      wrote on last edited by Stephane
      #2

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

      parent->getNodes(indexer, SBNode::IsType(SBNode::Residue));
      
      1 Reply Last reply
      0
      • M
        M
        Maximilian
        wrote on last edited by
        #3

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

        thx!

        1 Reply Last reply
        0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Login or register to search.
        • First post
          Last post