• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Create Repeated Pattern with Curved Position

Explorer ,
Mar 10, 2023 Mar 10, 2023

Copy link to clipboard

Copied

I'm trying to creating a MOGRT that will display the following pattern and allows customizations such as color changes, line thickness, length, line spacing, etc. and I'm about half way there.

Target Pattern:

Amozza_0-1678486754153.png

I have a shape layer for the main line and sliders that control the size and color. I added a repeater ("v-copies") to duplicate the line vertically and tied some of the properties to sliders to control number of copies and spacing between lines. I added a second repeater to duplicate these ("h-copies") with similar controls for copies and spacing. The layer looks like this:

Amozza_3-1678487449299.png

The pattern this produces is below and is kind of backwards. The horizontal copies are spaced closer together vertically instead of being farther apart.

Amozza_1-1678487054374.png

The Scale property on the "h-copies" repeater is [100,90] to make each column progressively thinner and I have this expression on the Position property:

hPadding = thisComp.layer("control").effect("Horizontal Spacing")("Slider");
xPos = content("line-element (shape)").content("Rectangle Path 1").size[0] + hPadding;
[ xPos, 0 ]

I've tried a few things like reordering the repeaters, making the Y position negative, but nothing gets me any closer.

 

I'm hoping this is an easy fix. Thanks.

TOPICS
Expressions

Views

235

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
community guidelines
LEGEND ,
Mar 10, 2023 Mar 10, 2023

Copy link to clipboard

Copied

It doesn't work because you're relying on scaling. You probably will have to use actual separate shape groups to be able to control the strokes and internal spacing. If you simply invert the scaling apparently your strokes will simply get thicker. and quite generally with that kind of stuff you'll likely need to start out with a comp that is two or three times taller/ wider than the target comp to account for the shapes not filling the whole area with some values.

 

Mylenium

Votes

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
community guidelines
Explorer ,
Mar 13, 2023 Mar 13, 2023

Copy link to clipboard

Copied

LATEST

Thanks Mylenium.

 

I will try your suggestion of different shape groups on even different layers and see where that gets me.

Votes

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
community guidelines