検索 - User list
Full Version: How to get a work item count in the File Pattern node?
Root » PDG/TOPs » How to get a work item count in the File Pattern node?
polimpiado
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?
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 )
polimpiado
Answer found in this post: Your text to link here... [www.sidefx.com]
polimpiado
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!
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB