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

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

    Scheduled Pinned Locked Moved
    Templates
    3
    3
    229
    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 Ottoundefined
      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!

      ariestavundefined Jonundefined 2 Replies Last reply Reply Quote 0
      • ariestavundefined
        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
        • Jonundefined
          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