hi everyone
i am looking for a solution to a pdg question i have.
after generating many different version of an asset, is there a way to remove random work items at the end of the tree before they are being rendered in a rop node?
//EDIT//
i just noticed a different post that filters the amount of workitems and deletes an amount, via a python processor. (https://www.sidefx.com/forum/topic/84535/)
being a python noob, how would this be rewritten into keeping an amount of workitems?
import random
choices = random.sample(range(0, len(upstream_items)), k=200)
for index, upstream_item in enumerate(upstream_items):
if index not in choices:
item_holder.addWorkItem(parent=upstream_item)