Is it possible to use a global variable as the argument of the "footage" function?
Hello,
I'm looking for a way how to use a global variable as the argument of the "footage" function. Not sure if it's possible at all.
It should be simple, but it doesn't work for some reason:
var path = eval(thisComp.layer("GlobalFileName").text.sourceText)
footage(path).dataValue([1,1,0,15]) + (" Frames")
In this version, I'm getting the "Couldn't find footage named 'Text Property' " error... So, it looks like the "footage" function can't read the "path" variable. Or probably can't use the variables at all?
But in this case, for example , it works just fine and I'm getting the proper text on the screen:
var path = eval(thisComp.layer("GlobalFileName").text.sourceText)
path
Any ideas how to fix that? Need that for parsing a lot of json files... just want to implement some automation.
Thank you,
Paul
