Notifications
Clear all
[Closed] selecting objects in a list
Mar 13, 2010 11:34 pm
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
Mar 13, 2010 11:34 pm
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.
Mar 13, 2010 11:34 pm
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
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…
Mar 13, 2010 11:34 pm
Thanks so much
I would give you more reputation but it won’t allow me to.