SuekieZA
Sept. 4, 2019 06:50:35
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
kenxu
Sept. 5, 2019 17:48:16
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.
SuekieZA
Sept. 6, 2019 05:26:40
I created a python script for it