-
Using a script to add an expression to a layer?
I’m not sure if I’m approaching this from the right angle but I’d appreciate some feedback.
Dan has just helped me with an expression: timeToCurrentFormat(time) which when applied to a text layer’s source property displays the frame numbers of the comp as a timecode.
I want to include this function in a script I’ve been working on which stamps the filename, framerate, aspect ratio etc. as new text layers to a selected comp (like a slate).
Is it possible to script an new text layer which has timeToCurrentFormat(time) as the expression for the source text property? or are scripts-scripts and expressions-expression with the two never meeting?
Thanks for any advice you can offer
John