Hello everyone. Since this is my first post i want to thank the developers for developing this wonderful software and doing it as an Open Source project.
Now to my question. Is there a way to access the filename of a read node that's used as a group's input from an expression within that group?
I'm trying to build a re-usable group node to perform some transformations on a source image ("animating" a still panoramic photography). I've added some controls to the group and expressions to the in-group transform nodes and all goes well (so far) but i also want to add a Write node within the group that will automatically output a clip containing the animation. I'm trying to create an expression in the Write node's filename field that would take the input filename, add a few characters and change the extension but keep most of the input filename (it already contains the date and time at which the picture was taken, the camera ID as well as the width of the panorama).
Now, i can get the input filename without any issue using :
But this only works as long as the input file is read by Read1 node and i want to be able to re-use this group.
I tried to use :
This gives me an error :
AttributeError: 'NatronEngine.Effect' object has no attribute 'filename'
even thought i confirmed that getInput does indeed return the read node by using :
But it doesn't return anything. If i try to specifically convert the output of this expression into a string
I just get some sort of hexadecimal garbage but not the actual filename :
<NatronEngine.FileParam object at 0x0000000000d8e9440