skipping work items

   1752   3   1
User Avatar
Member
100 posts
Joined: Sept. 2006
Offline
Hello,
Lets say i have generated 10 work items but already cooked 3.
Is there a way to explicitly tell the network to skip the first 3 indices?
User Avatar
Member
100 posts
Joined: Sept. 2006
Offline
This reply is more of a personal note, if thats ok. Just nicked and adapted this from another post in the forum.
I need to test it still.

choices = range(3)
for index, upstream_item in enumerate(upstream_items):
if index not in choices:
item_holder.addWorkItem(parent=upstream_item)
User Avatar
Member
8532 posts
Joined: July 2007
Offline
For your case you can also use Filter By Range TOP
Tomas Slancik
FX Supervisor
Method Studios, NY
User Avatar
Member
100 posts
Joined: Sept. 2006
Offline
Tomas you legend ! Thanks for this, *Filter by Range* is not only the favorite answer but it also opened a whole new can of worms for me.
Thanks

Attachments:
Forum_TOPsData.png (26.5 KB)

  • Quick Links