FORUMS: list search recent posts

Re: Customize layer sources for escential graphics creations?

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Emil Stefanow
Re: Customize layer sources for escential graphics creations?
on Aug 23, 2018 at 1:27:41 pm

Hi,
Let's say you have a comp with following 3 layers:

1. Text
2. videocomp_A
3. videocomp_B

You want that when people type in "A" in the essential graphics text field, then Videocomp A is visible, when people type in "B", then Videocomp B, or?

Put the following code in the Opacity of videocomp_A:

myTextLayerContent=thisComp.layer("Text").text.sourceText.value;
if (myTextLayerContent == "A") 100 else 0


and for videocomp_B:

myTextLayerContent=thisComp.layer("Text").text.sourceText.value;
if (myTextLayerContent == "B") 100 else 0


Best regards
Emil


Posts IndexRead Thread 


Current Message Thread:





© 2020 CreativeCOW.net All Rights Reserved
[TOP]