Stretch composition according to length of a text received for a text from a Json file
Tasnadi Otto last edited by
Hey, I am working on a project which requires to change the length of the composition according to the text which I received from a Json file through Templater.
Any ideas on how can I find relevant information or help to achieve this?
ariestav last edited by
With the ExtendScript API, you can change a layer’s duration via ExtendScript registered to Templater’s “After Update” event — I imagine you would create an algorithm that would assess how long a text layer’s duration should be given the length of text string. Then, you can invoke the Time Sculpting rule logic from within your ExtendScript so that all layers conform accordingly.
Does this help?
Jon last edited by
@Tasnadi-Otto Just to clarify, are you talking about pixel dimensions (length and width) or time/duration? If you’re talking about time, you can do what Arie suggested, or, as a workaround, you could set up your text layer(s) and have it mapped in multiple comps, each comp having a different duration, then use comp switching feature to swap between different precomps using the method shown in this demonstration.