Skip to main content
Lynnette7
Inspiring
December 27, 2022
해결됨

Is there a way to increase the thickness of all lines in a group?

  • December 27, 2022
  • 11 답변들
  • 22181 조회

I have some coloring book pages that I'm working on. I have lots of groups that each contain multiple thicknesses of lines. I need to make the ones closer to the front a touch darker than those in the distance. Is there a way to select a group and add .25 thickness to every line in the group? (Or whatever other increment needed.)

이 주제는 답변이 닫혔습니다.
최고의 답변: Artist26832874

Okay, first time replying to any thread on here, so sorry if I get the convention a bit wacky. This is the quickest method I have found:

1. Go to Window

2. Click Transform

3. Open the Transform Menu (on my PC it's the "hamburger" symbol)

4. Turn ON "Scale Strokes & Effects"

5. Enlarge the entire group in which you are wanting to increase stokes proportionally by the end percentage you are wanting. (E.g. if I want to increase a stroke by 300%, then enlarge the entire group by 3 times by constraining proportions and multiplying either the width or height by 3)

 

THEN - and this is where the magic happens -

 

6. Go back into the transform menu

7.  Turn OFF "Scale Strokes and Effects"

8.  Reduce the entire group by the same amount that you increased it by. (E.g. divide the width/height by 3 in this example) 

 

It works a charm! The only caveat is that it will also increase effects by the same amount, not just strokes, but perhaps this cuts out a bit of the tediousness. 

11 답변

Participant
November 20, 2024

This might work for scaling many strokes varying in width by a percentage. Use Scale with Scale Strokes & Effects checked and the desired percentage, e.g., 50%. Then reverse the scaling with, e.g., 200% but with Scale with Scale Strokes & Effects unchecked.

Monika Gause
Community Expert
Community Expert
November 20, 2024

@mr28360950  schrieb:

This might work for scaling many strokes varying in width by a percentage. Use Scale with Scale Strokes & Effects checked and the desired percentage, e.g., 50%. Then reverse the scaling with, e.g., 200% but with Scale with Scale Strokes & Effects unchecked.


 

As has been posted already in March this year.

Participant
March 7, 2024

Okay, first time replying to any thread on here, so sorry if I get the convention a bit wacky. This is the quickest method I have found:

1. Go to Window

2. Click Transform

3. Open the Transform Menu (on my PC it's the "hamburger" symbol)

4. Turn ON "Scale Strokes & Effects"

5. Enlarge the entire group in which you are wanting to increase stokes proportionally by the end percentage you are wanting. (E.g. if I want to increase a stroke by 300%, then enlarge the entire group by 3 times by constraining proportions and multiplying either the width or height by 3)

 

THEN - and this is where the magic happens -

 

6. Go back into the transform menu

7.  Turn OFF "Scale Strokes and Effects"

8.  Reduce the entire group by the same amount that you increased it by. (E.g. divide the width/height by 3 in this example) 

 

It works a charm! The only caveat is that it will also increase effects by the same amount, not just strokes, but perhaps this cuts out a bit of the tediousness. 

Lynnette7
Lynnette7작성자
Inspiring
March 7, 2024

Thank you! That sounds like a good workaround, too. I appreciate your input!

Lynnette7
Lynnette7작성자
Inspiring
January 6, 2023

Oh!! The scripts posted by Kurt Gold work in groups! 
Thank you, thank you, thank you! I will mark that answer as the right one. Appreciate everyone's help!

Lynnette7
Lynnette7작성자
Inspiring
January 5, 2023

Okay, I know I'm being slow on this. Just got a major project off and now have a little more time to deal with this. So I tried the script that I posted earlier (From Ray Craighead) and I can't get it to work. 
I pasted the code into Notepad, saved it with a .jsx extension, put it into the scripts folder in Illustrator. When I have my Illustrator file that I want to work on open, I select the group that I want to make bolder (thicken the lines) and go to File/Scripts. The script is there, but when I click it and the dialogue box pops up and I enter a decimal and hit okay or return, it does nothing. The line thicknesses do not change and no step is added to the history panel. 

Thoughts for me on what I'm doing wrong?

Monika Gause
Community Expert
Community Expert
January 5, 2023

Probably it doesn't like groups - did you try and ungroup the lines?

pixxxelschubser
Community Expert
Community Expert
December 28, 2022

Both scripts shown by @Kurt Gold  do what I think @Lynnette7 wants.

The scripts also work in groups and with compound paths.

 

Further:
All scripts shown here in the thread so far work exclusively with point as a unit. (But this could easily be changed).

 

Two questions remain:

  1. What unit of measurement does Lynnette7 use for the stroke width?
  2. Does Lynnette7 want to change the thickness once in the scripts shown by Kurt or does she prefer the input option via @rcraighead's dialogue box?

 

 

Lynnette7
Lynnette7작성자
Inspiring
December 29, 2022

First I'm going to try the percentages option. I just need some time when I'm not wiped from work to try these out. Thanks for all your help!

Kurt Gold
Community Expert
Community Expert
December 28, 2022

There are two simple, about twenty years old scripts by Muchacho (stroke_plus and stroke_minus) that increase or decrease all selected strokes by 0.5 pt.

 

They still work in current versions of Illustrator. Increase/Decrease values can be modified in line 5 and 6.

 

Download Stroke Plus/Minus

 

Lynnette7
Lynnette7작성자
Inspiring
December 29, 2022

Thanks!

Lynnette7
Lynnette7작성자
Inspiring
December 28, 2022

Oh, I found this, which I think is what @Ton Frederiks was talking about. The thread is here: https://community.adobe.com/t5/illustrator-discussions/how-to-apply-a-brush-and-keep-stroke-weights/m-p/10976459

And the specific message I'm referring to contains this...
_______

This should work. Make sure to enter the percentage with a decimal point.

//by Ray Craighead
//Resize selected path stroke width(s) by percentage.

function scalePathWidth(){
    var aDoc = app.activeDocument;
    var sel = app.selection;
    if (sel.length < 1){
        alert ('Make a selection of paths and try again');
        return;
        }
    else
    {
        var myInput;
        userPrompt();
        var myPercent;
        function userPrompt(){
            myInput = prompt('Scale Percentage (0.1 = 100%)', .100);
            myPercent = Number(myInput);
            }
        for (var i = 0; i < sel.length; i++) {
                var myWidth = sel[i].strokeWidth;
                sel[i].strokeWidth = myWidth * myPercent;
                }
            }
        }

scalePathWidth();

And here's a .jsx file you can download and install:
https://www.dropbox.com/s/yjg7jrj7wkak5p8/scalePathWidth.jsx?dl=0 Edit: I noticed I left an unused variable so I updated the script.
_______


The Dropbox link no longer works. So I wondered if anyone smarter at coding than me knows what unused variable needs to be fixed in the script?

Ton Frederiks
Community Expert
Community Expert
December 28, 2022

That is indeed the script I was referring to and it works as it is (probably also corrected on the forum page). So copy the script, create a Text Only file, paste the script and save it with a .js or .jsx extension. Install it or load it with File > Script > Other Script...

Lynnette7
Lynnette7작성자
Inspiring
December 29, 2022

Thank you. Sorry to be slow to reply. I've had a very long day at work. Will try this tomorrow or Friday when I have time to get back to Illustrator. 

 

Ton Frederiks
Community Expert
Community Expert
December 27, 2022

I have a script by @rcraighead that resizes selected paths by percentage, but I cannot find it anymore on this forum: scalePathWidth.jsx

I don't want to post it without his permission.

Lynnette7
Lynnette7작성자
Inspiring
December 27, 2022

This would be lovely to have and is exactly what I'm looking for. I can't figure out why this isn't a built-in feature in Illustrator. It seems like it would be needed quite often. Thank you. I'll wait to see if he responds. 

Lynnette7
Lynnette7작성자
Inspiring
December 28, 2022

@Lynnette7 

Doesn't the solution I suggested work? Or have I completely misunderstood your requirement?


Hi, thanks for your detailed explanation, however, I'm looking for something easy. 🙂 I would love to be able to select a group, click an up (or down) arrow, and have them scale up or down in proportion to each other at a selected scale. (.25, or whatever else is set.) I can currently open a group and select all of the same strokes, as @Mylenium suggested and increase them one type (thickness) at a time, but I was looking for something easier. I'm always looking for shortcuts and your way seems pretty complicated - as in, lots of steps. It's the steps I'm seeing if I can get around. 🙂 

pixxxelschubser
Community Expert
Community Expert
December 27, 2022

@Lynnette7 

  1. You have different groups of paths with different line thicknesses in a layer - right?
  2. All paths (of a group) should become thicker by the same value, in addition to the existing line thickness?
  3. All strokes have the same colour?

 

Try this (sorry for my German UI):

select your group

 

Add menu: Effekt -> Path -> Outline Stroke

 

Nothing happens - only the small circle to the right of the group name is filled now

 

Create a new layer and drag the whole group onto this new layer

and click on the circle with a red border (in the screenshot) to the right of the name of the layer.

 

Add a new stroke in the Appearance Panel

 

Set the stroke width as desired, but double the width as the new stroke will automatically be aligned in the middle. (I have coloured the contour yellow so that it is easier to see.)

 

Done!

 

 

Kevin Stohlmeyer
Community Expert
Community Expert
December 27, 2022

You can select based on depth using the Layers panel.

The top most layers are the closest.

Shift-click the gap between the circle and the end of the panel (blue square) to select.

Once you have your depth selected you can adjust the stroke or Group them as needed.