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

    Change shape size

    Scheduled Pinned Locked Moved
    Templates
    shape scale stroke percentage graphic
    2
    2
    479
    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.
    • rivalproundefined
      rivalpro
      last edited by

      Is there a way to update the size of a shape based off data? For instance, if I want to show a user’s usage of a utility (75%) can Templater change the length of a bar or percentage completion of a stroke to match the data?

      Thank you!

      Jonundefined 1 Reply Last reply Reply Quote 0
      • Jonundefined
        Jon @rivalpro
        last edited by

        @rivalpro Yes, you can pull in the value as a text layer, then use an expression to tie your shape size / percent completion to the SourceText property of the text layer by wrapping it in a parseInt(). If your text layer is “text-1”, and your text layer is in the same comp as whatever numerical value you are using to control your bar, the expression would be:

        parseInt(thisComp.layer("text-1").text.sourceText)
        

        That would convert your text value from being just a text string into a number.

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