Use effect within range selector

Participant ,
Jul 11, 2020

Copy link to clipboard

Copied

I have just learned more about text animators. I really like the control you have with range selectors and the other facets. Now my question is can you use effects only in the area that a range selector makes visible? To be clear if I add a position and opacity change the range selector will reflect that change when at 0% - 100%. How could an effect (e.g. Tripcode Shine) be used only when the range selector if effecting the text? Thanks

TOPICS
Expressions, How to

Views

68

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Use effect within range selector

Participant ,
Jul 11, 2020

Copy link to clipboard

Copied

I have just learned more about text animators. I really like the control you have with range selectors and the other facets. Now my question is can you use effects only in the area that a range selector makes visible? To be clear if I add a position and opacity change the range selector will reflect that change when at 0% - 100%. How could an effect (e.g. Tripcode Shine) be used only when the range selector if effecting the text? Thanks

TOPICS
Expressions, How to

Views

69

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jul 11, 2020 0
Most Valuable Participant ,
Jul 11, 2020

Copy link to clipboard

Copied

Not per se, but nothing stops you from using duplicate layers. They may just require tweaking to be used as mattes or get the proper coloration.

 

Mylenium

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 11, 2020 0
Participant ,
Jul 12, 2020

Copy link to clipboard

Copied

Hi, I did already try it with duplicate layers. I will give using it as a matte a try. I appreciate the suggestion. Thank You.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 12, 2020 0
Adobe Community Professional ,
Jul 12, 2020

Copy link to clipboard

Copied

Almost any property that can be animated will generate usable values you can use in another expression. There are exceptions, like Curves, but if you can generate a numeric value you can use that to generate a value in another expression. 

 

If you have a range selector animating the Y position of a line of type you could compare the range selector value with the position and calculate how much the Y position changes as the characters move. 

 

To be specific we need a detailed description or sketch of your design goal. Something like "I have added a Position animator to a text layer that makes text fall from the top of the frame to their final position. I want to automate the Source Point of the Shine effect so that it jumps to the top left corner of each character as it hits its final position and then I want the Boost Light to flash then fade as the next character falls into position."

 

If that is what you wanted to do then I would start by opening up the Advanced options of the Range Selector and changing the units to index, then I would retrieve that number and round it so that as the range selector moves from 0 to 1 nothing would happen until it got to 1. That would trigger a time-based increase in the Boost light, and a position jump equal to the distance between the characters. The expression would require accumulators and if/else statements, and I couldn't write it without AE open and a lot of fiddling, but somebody like Dan Ebberts could probably knock it out in a couple of minutes. We just need to know what you want to accomplish.

 

(edit) So I opened up AE and added Shine to a text layer then added this expression to Source Point. Set the Source point to the center of the first character using a monospaced font and set the number of characters in the expression and the source point jumps to the center of each letter as it starts to move. Maybe this will get you started.

v = text.animator("Animator 1").selector("Range Selector 1").end;
charCount = Math.floor(v);
txtWidth = thisLayer.sourceRectAtTime().width;
charWidth = txtWidth / 10; // Number of characters in text
newX = charWidth * charCount;
[value[0] + newX, value[1]]

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 12, 2020 0
pctechtv LATEST
Participant ,
Jul 12, 2020

Copy link to clipboard

Copied

Hi, I like this idea it is super helpful. It will push me to understand expressions better than I already do. I love this. I already know a lot of JavaScript but have not gotten used to the expression engine in After Effects. However, I am excited to do so. Your suggestion for this will send me on my way. Again this is super helpful. Thanks

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jul 12, 2020 0