Quick example of what I'm trying to do: render with a ROPfetch, perform some comp operations in a ROPCompositeOutput node, change the output name via Python string manipulation in the copoutput channel, write to disk.
Here's some sample code running in that channel expression that I thought should get me the input file name or at least the upstream workItem, but no luck yet:
#looking for input from upstream item inputList = pdg.input() inputTag = pdg.input(tag="file/image") #just trying to find the upstream item at all parent = pdg.workItem().parent batchParent = pdg.workItem().batchParent print(inputList, inputTag, parent, batchParent)
The results are all empty though:
([], [], None, None)
Clearly I'm misunderstanding how to approach the problem because neither that example nor anything else I can think of from the Python reference gets me any data other than "None" or an empty array.
Thanks for any help.