How to get a work item count in the File Pattern node?
974
3
1
2025年1月27日 15:59
The Wedge Node creates "wedgetotal" and "wedgecount, The File Pattern node does not create an attribute of the total number of work items. Is there a smart way to create this? is it only possible with Python?
Attachments:
Screenshot 2025-01-27 125114.png (128.5 KB)
Screenshot 2025-01-27 125022.png (101.4 KB)
tamte
Member
9249 posts
Joined: 7月 2007
オフライン
2025年1月27日 17:43
you can for example append Python Processor:
count = len ( upstream_items )
for upstream_item in upstream_items :
new_item = item_holder . addWorkItem ( parent = upstream_item )
new_item . setIntAttrib ( "file_count" , count )
Tomas Slancik CG Supervisor Framestore, NY
2025年1月27日 17:44
tamte you can for example append Python Processor:count = len ( upstream_items )
for upstream_item in upstream_items :
new_item = item_holder . addWorkItem ( parent = upstream_item )
new_item . setIntAttrib ( "file_count" , count )
Thank you!