ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Use Source Text as expression

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Remi Monedi
Use Source Text as expression
on Apr 8, 2020 at 2:25:46 pm

Hi everyone,

I have a text layer with a slider. In the source Text, I wrote "wiggle(5,50)" (without the quotation mark).
I'd like the Slider property to use this text as an expression. How? I've searched the internet for 1 hour and I can't find an answer!

The code below obviously doesn't work. AE understands it as a Text value, not a property or expression.


Have a nice day!

thisLayer.text.sourceText;


Return to posts index

Dan Ebberts
Re: Use Source Text as expression
on Apr 8, 2020 at 9:45:06 pm

Try it this way:

eval(text.sourceText)


Dan



Return to posts index

Remi Monedi
Re: Use Source Text as expression
on Apr 9, 2020 at 7:16:05 am

Hi Dan,

On AE CC2017 it is not working, same error message.


Return to posts index


Tomas Bumbulevičius
Re: Use Source Text as expression
on Apr 9, 2020 at 11:11:42 am

Remi, as a workaround, you could instead define a wiggle in the slider, and just control numeric values by assigning other slider values (for speed and influence).

I tried Dan's example in CC2019 and it also does not work though.

Find out more:
Motion Graphics Design & After Effects Tutorials
On YT
On VH


Return to posts index

Remi Monedi
Re: Use Source Text as expression
on Apr 9, 2020 at 1:17:40 pm

Thank you for the workaround Tomas but I am trying to create a project to test expression calculation speed and your solution won't work :
I wanted to have a text layer where I can write the expression I want to test and then have the properties of 50 layers linked to this Source text. This way I could easily change/improve the expression on just a single text layer and see how it affects the preview time on a lot of layers.
This is the easiest setup I came up with but maybe it's not possible to convert text values into property.


Return to posts index

Tomas Bumbulevičius
Re: Use Source Text as expression
on Apr 9, 2020 at 2:35:51 pm

Would love to see the results if you come up to a solution! In the meanwhile, if some idea pops into my head I will let you know. Are you using CC2017 only or higher versions are applicable too?

Find out more:
Motion Graphics Design & After Effects Tutorials
On YT
On VH


Return to posts index


Remi Monedi
Re: Use Source Text as expression
on Apr 10, 2020 at 8:56:04 am

If the results are conclusive I will share the project file Tomas, I'll let you know! For now I'm working on AE CC2017 to maximize its compatibility.


Return to posts index

Dan Ebberts
Re: Use Source Text as expression
on Apr 9, 2020 at 4:52:48 pm

Ah, OK--slight change:

eval(text.sourceText.value)


Dan



Return to posts index

Remi Monedi
Re: Use Source Text as expression
on Apr 10, 2020 at 8:57:36 am

It works! Thank you Dan!


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2020 CreativeCOW.net All Rights Reserved
[TOP]