ojrsticky.blogg.se

After effects stroke rounded corners
After effects stroke rounded corners












after effects stroke rounded corners

I've added a Roundness slider, an Offset slider, and a stroke and fill color Effect Controller to the shape layer for this animation preset. My most basic animation preset looks like this: 01 īorder = content("Rectangle 1").content("Text BG").roundness Ofst = ySize * effect("Offset")("Slider") *. RndRatio = effect("Roundness")("Slider") *. MaxR = sRc.sourceRectAtTime().height / 2 My basic automatic text box also utilizes a stroke and fill for the shape layer and a slider for the percentage of roundness. You can also compensate for the scale of the text layer so anything you do to the text layer's position or scale will be reflected in the text box.

after effects stroke rounded corners

You can also compensate for the scale of the text layer and even tie the position of the shape layer and the position of the text together so your text box will always line up perfectly with the text. If you add in sourceRectAtTime().top and sourceRectAtTime().top to the calculations for the shape layer rectangle you can compensate for the paragraph styles and baseline shift. All of the presets that generate backgrounds for text layers use index - 1 instead of layer lathe layer name so all you have to do is put the shape layer below the text layer and animate a couple of sliders. I have about 30 custom text presets and all of them automatically line things up so I only have to animate the text layer to get everything else to follow. I suggest you add a bit to your setup so that it at least compensates for baseline shift, paragraph style, and text layer scale. All of my text Animation Presets link more than just one text layer property to the shape layer so that everything lines up automatically.

after effects stroke rounded corners

When you are building this kind of automated system you will save a lot of time if you try and compensate for more than just the size of the text area.














After effects stroke rounded corners