Adobe After Effects Forum
Dotted, animated beam line
Dotted, animated beam line
by Sean Kimber on May 4, 2016 at 1:09:29 pm

Hi,

I'm not sure if this belongs here or in Expressions. (I'm honestly not even sure if it's possible). I"m trying to create a Beam layer for which I can attach the start and end position to Nulls. (I already know how to do that). But, I want the beam to have dashes instead of a solid line. Playing around a bit, I figured out that Vegas would work. However, I can't figure out how to make those segments move along the path of the beam. The rotation parameter in Vegas doesn't work. Neither do other effects like Offset or Transform. Any ideas? I've attached a screenshot for reference.

Thanks!






Re: Dotted, animated beam line
by John Cuevas on May 5, 2016 at 3:57:41 pm

You could do this using shape layers and the BAO Mask Avenger 2 script, it's not inexpensive though.

Johnny Cuevas, Editor
ThinkCK

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.


Re: Dotted, animated beam line
by Sean Kimber on May 5, 2016 at 4:57:52 pm

Unfortunately, I don't have the budget for that, but thanks.




Re: Dotted, animated beam line
by Cassius Marques on May 5, 2016 at 5:14:50 pm

I created one example, see if it helps.

10057_strokeddashedbeam.aep.zip

Cassius Marques
www.zapfilmes.com


Re: Dotted, animated beam line
by Cassius Marques on May 5, 2016 at 5:27:35 pm

If you somehow can't open the file, here is what you need:

Create a dotted, animated line(with a shape layer for example, just make sure its long enough). Set its anchor point to its left. move it and link it to your left beam null.
Add this expression to its rotation:

a = thisComp.layer("Point A").position;
b = thisComp.layer("Point B").position;
v = b-a;
radiansToDegrees(Math.atan2(v[1],v[0]))


Set this layer as to alpha matte bellow your beam.

Cassius Marques
www.zapfilmes.com


Re: Dotted, animated beam line
by Sean Kimber on May 5, 2016 at 6:52:29 pm

That worked perfectly! Thank you!




Re: Dotted, animated beam line
by John Cuevas on May 6, 2016 at 1:11:10 pm

That is an awesome solution, Cassius. I'll be saving that one myself.

Johnny Cuevas, Editor
ThinkCK

"I have not failed 700 times. I have succeeded in proving that those 700 ways will not work. When I have eliminated the ways that will not work, I will find the way that will work."
---THOMAS EDISON on inventing the light bulb.





© CreativeCOW.net