-
Retrieve value from sourcetext
Hi all,
I have possibly a very simple question, but I can’t seem to figure it out and I have looked all over the interwebs for answer without result.
In my composition I have a text layer with a number as sourceText. Now I want to use this number in another layer to scale accordingly.
However, when I try to use the sourceText as a value, it gives me the following error message: Object of type TextProperty found where a Number, Array, or Property is needed. Below you can find the code I’m trying currently.Could anyone tell me what I’m doing wrong? How am I transforming the sourceText into a working value?
Thanks,
JorgeL1 = thisComp.layer("Text 1").text.sourceText;
[transform.scale[0], L1];