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

Simplest way to stack lines and style individually

New Here ,
Jul 27, 2022 Jul 27, 2022

Hi,

I am making a map and have several trails that follow the same route.

I want to automate stacking these lines together, and be able to style them independantly of each other.

I have taken the following approach, but there is likely a much better idea since I am not an illustartor expert.

 

I have the main trail drawn in illustrator as a path.

I then use Effect>Path Offset to get the path repilcated.

Then I use Object>Outline Path.

This gives me basically 3 copies which is all I need.

I want to be able to style the 2 black and 1 white lines individually but I don't know how to do this.

Ideally they would adjust together as a manipulate them, but I need to be able to style them independently.

Heres an example:

Untitled.png

On the left is the trail path styled with a 1mm stroke.

On the right I have taken the previous outlined steps, and I consider the object to have 2 black and 1white copy of the path I want.

I am hoping someone can steer me in the right direction.

Thanks.

TOPICS
Draw and design , Feature request , Tools
759
Translate
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
Adobe
Adobe Employee ,
Jul 27, 2022 Jul 27, 2022

Hello @map1,

 

Thanks for reaching out. I would request you try the steps shared in this tutorial (https://www.youtube.com/watch?v=Pd5kdkSChFg) and check if it helps.

 

Looking forward to your response.

 

Thanks,

Anubhav

By default, a path in Illustrator has a single stroke and a single fill. It's easy to add multiple strokes to a path and some very interesting looks can be achieved when changes are made to attributes like the colour and width of those strokes. Details below... Patreon: ...
Translate
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
Community Expert ,
Jul 27, 2022 Jul 27, 2022

What do you need to do exactly when you say 'style them indepedently'? Style in what way?

You can use two strokes on the same path and keep your effect live:

DougARoberts_0-1658934739056.png

 

Translate
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
New Here ,
Jul 27, 2022 Jul 27, 2022

Hi,

thanks Anubhav Majumder, that video opened my eyes to multiple strokes which I didn't know about.

Thanks Doug as well, although I'm still not sure how to get my desired effect.

I'm trying to get 3 or more lines all stacked correctly with the ability to manipulte each one's style:

(I've manully stacked them here, poorly...)

Untitled1.png

Thanks.

 

Translate
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
Community Expert ,
Jul 27, 2022 Jul 27, 2022

Please be specific about what you mean by 'style'. Is that exactly what you want to do or just an example?

This uses some strokes with an offset width profile. There are other ways:

DougARoberts_0-1658936736535.png

 

Translate
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
New Here ,
Jul 27, 2022 Jul 27, 2022

Hi Doug,

What you have shown is what I am after, but when I use the offset path it only works if I join the ends of the path as shown below.

I've also shown the most complicated style of one of the lines, the dashed green and black one with outline below.

I don't know how to hide/make transparent the joining lines (or even if that's the way to do it), and there will be a map image below that can't be covered.

Untitled2.png

Thanks again.

 

Translate
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
New Here ,
Jul 27, 2022 Jul 27, 2022

Hi,

it seems what I want to do is explained here:

https://www.youtube.com/watch?v=kDZuqQQVyQk 

 

Thanks for the prompt replies.

Add more than one stroke to a path in Adobe Illustrator as well as using outline stroke and other features to control your line creation. ▶︎ IN THIS VIDEO 0:00 - Creating a Shape with the Pen Tool 1:00 - Align Your Stroke & Add an Extra Stroke 1:30 - Change Panel Alignment & Modify Stroke Widths ...
Translate
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
Community Expert ,
Jul 27, 2022 Jul 27, 2022

Please see this file for a couple of examples:

https://drive.google.com/file/d/10R0T-IihvpUkgZ0a8nkPxSbxJAmmzeF4/view?usp=sharing

 

Check the appearance panel for the structure.

Translate
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
Community Expert ,
Jul 27, 2022 Jul 27, 2022

The black and dashed green one is not complicated at all. You need to apply a thick black stroke and then a second green one which is slightly thinner and dashed.

 

If you need proper crossroads, you need to apply the multiple strokes not to the paths, but to the layer. For that target the layer and then add strokes to it.

 

Targeting: clicking on the circle in the layers panel.

Translate
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
New Here ,
Jul 27, 2022 Jul 27, 2022

Hi,

thanks Monika and Doug.

Monika - that sounds like the way to go at joins for sure.

Doug - how did you get the strokes to offset without using the align setting?

It seems you set a custom width, but I'm not sure how.

 

Finally, if you had to do something like the following in a nice way,

how would you go about doing it?

(Assume I'm starting with the black line path)

(Maybe there's a tutorial you can link)

Untitled3.png

Thanks.

Translate
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
Community Expert ,
Jul 27, 2022 Jul 27, 2022

You could have the 3 shapes. The black one gets a normal stroke.

The other 2 get the Offset Path effect to make them move: one to the inside, one to the outside.

Translate
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
New Here ,
Jul 27, 2022 Jul 27, 2022

Thanks all for your help.

I have a lot to play with now.

I am very impressed with the fast and helpful responses.

Translate
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
Community Expert ,
Jul 28, 2022 Jul 28, 2022
LATEST
quote

Doug - how did you get the strokes to offset without using the align setting?

It seems you set a custom width, but I'm not sure how.

 


By @map1

 

It's a width profile, made with the width tool, that puts the stroke wholly on one side of the path:

DougARoberts_0-1659004042756.png

To make one yourself, using the width tool, hold alt and drag one side of the stroke to the centreline at each end of the path.

Translate
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