Navigation

    Dataclay — Automating Digital Production
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users

    Stretch composition according to length of a text received for a text from a Json file

    Templates
    3
    3
    70
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Tasnadi Otto
      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?
      Many thanks!

      ariestav Jon 2 Replies Last reply Reply Quote 0
      • ariestav
        ariestav @Tasnadi Otto last edited by

        @Tasnadi-Otto That’s a tough one, but Templater has what is called Time Sculpting features, in addition to an ExtendScript API.

        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?

        Thanks!

        1 Reply Last reply Reply Quote 0
        • Jon
          Jon @Tasnadi Otto 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.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post