Page 1 of 1

Multilayer shape selection

Posted: Sun May 18, 2025 9:20 am
by jawad
Image

I know there is a system for the way i want to handle all my layers strokes which is styles. but i was wondering if there's a way to choose multiple layers using the shape select (q) and change the stroke . suppose i have two shapes in two different layers.i want to change their stroke without using styles. right now the only way i know is going through each layer ,selecting it with "q" then change the stroke individually. is there a work around for this or a script that i can use to choose multiple layers and change their stroke width or color.
thanks.

Re: Multilayer shape selection

Posted: Sun May 18, 2025 11:22 pm
by Greenlaw
Custom Styles are definitely the way to go for this. You can set up Styles that only affect Strokes and vice versa. You can even make the style only affect line weight, but not color, and other variations. I use these techniques for characters I intend to use in various situations, and for more than one project. (The Artist character in my tutorial videos is a good example.)

You can't easily make global changes to regular styles because you can't select Individual shapes across multiple layers all at once. As a partial workaround, I will select a shape I want to change in the Working Space using Alt R-Click and then L-Click, and the Shift Drag for additional shapes if desired, and the Ctrl R-Click on a shape in any layer with the new Style. This will sample the style and apply it to the selected shapes in other layer. This can go very quickly once you get the hang of it. Alternatively, you can use the Copy/Paste buttons in the Style Window to apply a style to multple selected shapes at once. Either approach works for multiple selected shapes, but you still need to do this for each layer individually.

I use this second approach when the change is just a one-off and I don't intend to change it again, or don't plan to change it often. Otherwise, I'll use Custom Styles because it's much easier and faster over the long run. Just select the style, make your change, and Moho automatically updates all the shapes that use that style.

Re: Multilayer shape selection

Posted: Mon May 19, 2025 3:27 am
by Stan
jawad wrote: Sun May 18, 2025 9:20 am is there a work around for this or a script that i can use to choose multiple layers and change their stroke width or color.
A while ago I wrote a script that can do that. It works with multiple selected layers, including groups. https://mohoscripts.com/script/sz_recolor_layer

Re: Multilayer shape selection

Posted: Mon May 19, 2025 4:37 pm
by Greenlaw
Oooh! I somehow missed this one. I will try it out today. Thank you, Stan! :D