Skip to main content
Peter A Lund
Inspiring
January 30, 2020
Answered

Expression for the source text to be able to write the word in the source text ...

  • January 30, 2020
  • 2 replies
  • 1238 views

Hey , 

 

how can I write the text layer "content" in the expression source text field? 

 

I only manged to referenz this to the layer itself and to a null or another comp. 

I would like to write it in the expression field and then see it reflected in the 

comp window. 

 

name.(example) 

won´t work 

 

text.sourceText.name.example 

won´t work ....

 

appreciate the help, thanxs

 

Peter 

 

This topic has been closed for replies.
Correct answer Roland Kahlenberg

You have to put the text within " " - so, all you need to do is to type

"example"

in the Source Text property.

 

 

2 replies

Roland Kahlenberg
Roland KahlenbergCorrect answer
Legend
January 30, 2020

You have to put the text within " " - so, all you need to do is to type

"example"

in the Source Text property.

 

 

Very Advanced After Effects Training | Adaptive & Responsive Toolkits | Intelligent Design Assets (IDAs) | MoGraph Design System DEV
Peter A Lund
Inspiring
January 30, 2020

Hey Roland,

 

thanxs , that just works fine. 

rejoice in the way things are.When you realize there is nothing lacking,the whole world belongs to you.>Be content with what you have;rejoice in the way things are.When you realize there is nothing lacking,the whole world belongs to you.
Mylenium
Legend
January 30, 2020

It's not clear what you are actually trying to do. Your source text is the "content". Beyond that there is no specific requirement to modify it via an expression by explicitly adressing it as a property. AE will spit out whatever is the last valid variable, value or string in a property stream. You don't seem to understand that pre-expression vs. post-expression thing in AE. .name is a read-only property, anyway, and the layer name cannot be modified with expressions. I'm sure if you clarify what you are actually try to do we may be able to help you with sojme simple code snippets, but as it is, you post is very confusing.

 

Mylenium

Peter A Lund
Inspiring
January 30, 2020

Hey Mylenium, 

 

sorry for expressing myselve poorly. 

I am not a native speaker. 

And while switching between languages my sentences can be confusing. 

thnx for pointing out the pre and post expression behavior. 

I am going to dig into it. 

 

Peter 

rejoice in the way things are.When you realize there is nothing lacking,the whole world belongs to you.>Be content with what you have;rejoice in the way things are.When you realize there is nothing lacking,the whole world belongs to you.