Making The output file size an attribute

   2083   2   0
User Avatar
Member
12 posts
Joined: Feb. 2018
Offline
Hey there, I would like to make the rop fetch output file size and attribute so I can use it in an overlay later on in the graph. Any pointers on how to do this

Attachments:
Capture.JPG (40.8 KB)

User Avatar
Member
544 posts
Joined: Sept. 2012
Offline
Yes, the output file size is an intrinsic property on workitems (not a regular attribute). It is something we don’t want downstream workitems to inherit, which would be true if it’s an attribute. To make it into an attribute, we looking into making an attribute promote node that can do such things (and more), but in the mean time the best thing is to use a python processor. You can access the upstream workitem and create an attribute from the upstream workitem’s file size. Note that by doing this your node (and thus downstream graph) will need to be dynamic - the file size is not known until the upstream item is actually computed.
Edited by kenxu - Sept. 5, 2019 17:49:28
- Ken Xu
User Avatar
Member
12 posts
Joined: Feb. 2018
Offline
I created a python script for it

Attachments:
unknown (1).png (87.1 KB)

  • Quick Links