How to get a work item count in the File Pattern node?
988
3
1
polimpiado
Member
54 posts
Joined: Dec. 2016
Offline
Jan. 27, 2025 3:59 p.m.
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
9262 posts
Joined: July 2007
Offline
Jan. 27, 2025 5:43 p.m.
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
polimpiado
Member
54 posts
Joined: Dec. 2016
Offline
polimpiado
Member
54 posts
Joined: Dec. 2016
Offline
Jan. 27, 2025 5:44 p.m.
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!