—
since your loop is "For each Node" and you want to pin that to another Node, you will need to first create a family (called NodeFamily) and put Node in it.
Then you can have a "Node" and a "NodeFamily" selected at the same time and pin one to the other.
so, you will end up with something like this:
For each node instance {
if (loopindex == 0)
{
old_uid = node.uid
}
if (loopindex > 0)
{
pick_instance_of_NodeFamily by old_uid
{
pin node to NodeFamily
old_uid = node.uid
}
}
}[/code:2g6gtpu2]
I usually create instance variables (called NextNode and PreviousNode) and then save the old_uid in Node.PreviousNode and save node.uid in NodeFamily.NextNode
That way you can randomly pick any node and know who it is pinned to, and who is pinned to it - and follow the chain if necessary.
EDIT: OH!! ROJOhound beat me again! I need to learn to type faster!