Mobile app version of vmapp.org
Login or Join
Deb5748823

: Illustrator: How to change stroke weight proportionally without scaling the objects? I have a bunch of lineworks with different stroke weights. Is there a direct way to reduce/increase all stroke

@Deb5748823

Posted in: #AdobeIllustrator #Resize #Stroke

I have a bunch of lineworks with different stroke weights. Is there a direct way to reduce/increase all stroke weights proportionally without changing the size of the objects?

Thanks,
Newton

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Deb5748823

2 Comments

Sorted by latest first Latest Oldest Best

 

@Welton168

You may use the following script. It changes the widths of all strokes in document accordingly to the percentile value.

//here you can change the stroke percentual
var myA = prompt("Choose your %","80","Change width stroke");
var myPercentile = myA/100;

if(myA!=null){

// choose all page elements
for (var i=0;i<app.activeDocument.pageItems.length;i++){
var myLayer = app.activeDocument.pageItems[i];

//if element is compound make a new loop for pathItems
if(myLayer.typename=="CompoundPathItem"){
for(var u=0;u<myLayer.pathItems.length;u++){

//take actual stroke size
var myPath = myLayer.pathItems[u];
var myMeasure = myPath.strokeWidth;

//transform the stroke width into % choose at start
myPath.strokeWidth = myMeasure*myPercentile;
}

}

if(myLayer.typename=="PathItem"){
var myMeasure = myLayer.strokeWidth;
myLayer.strokeWidth = myMeasure*myPercentile;
}
}
}

10% popularity Vote Up Vote Down


 

@Yeniel278

Choose transform → scale scale down (or up to increase) with scale strokes and effects enabled. Then yet again scale with opposite scale value, this time disable scale strokes and effects. Done.

This is not very good approach if your using pixel snapping as it introduces jitter (instead of a matrix concatenation). In this case i would consider scripting this.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme