Notifications
Clear all

[Closed] selecting objects in a list

is it possible to select all objects that appear after a given object

i want to select everything after the object that starts with _101 including that object is that possible?

4 Replies

what nodes are after? it depends on the list sorting option and visibility filter. If you want to select all nodes that were created after some node you can do it. INode.handle of all nodes after some one has to be higher.

the nodes are always created in this order so how would i go about if i see a node created that starts with _101 it will select that node and everything after it?

1 Reply
(@denist)
Joined: 11 months ago

Posts: 0

 start_node = ... -- assign some node (  [b]($_101_* as array)[1][/b] for example )
 nodes_after = for obj in objects where obj.inode.handle >= start_node.inode.handle collect obj
 select nodes_after
 

like that…

Thanks so much
I would give you more reputation but it won’t allow me to.