Change shape size
-
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!
-
@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.