Using a style for stroke only

General Moho topics.

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
Hoptoad
Posts: 718
Joined: Sun Jan 03, 2016 4:19 pm
Location: Florida

Using a style for stroke only

Post by Hoptoad »

I'm working on a new character, and rather than use a style for both fill and stroke (my usual method), I want to use two styles: one for fill only and one for stroke only. Some people on this forum have mentioned doing this, and it sounds useful.

Any tips?

I haven't been able to get it to work yet, so a step-by-step would be helpful. Thanks.
User avatar
Víctor Paredes
Site Admin
Posts: 5818
Joined: Wed Jan 26, 2005 12:18 am
Location: Barcelona/Chile
Contact:

Re: Using a style for stroke only

Post by Víctor Paredes »

When you are creating/editing a Style, there are checkboxes next to Fill color, Stroke Color and Width.
If you uncheck any of those in the Style, then the style won't apply those values to the shape.

For instance, here is a style that will only affect the strokes, turning them blue blue with a 25 Width:
Image

And here is a style that will only affect the fills, turning them red:
Image

In a similar way, you can select a shape with styles applied and override the style.
For instance, here the shape selected has both Stroke1 and Fill1 styles applied, but I activated the checkbox of the Width, so I can set it to be 13 instead of 25
Image

I hope this makes sense :)
Image Image Image Image Image Image
Moho co-owner

Previously Rigged animation supervisor: My father's dragon, Wolfwalkers & Star Wars Visions "Screecher's Reach"
My personal Youtube Channel
User avatar
Hoptoad
Posts: 718
Joined: Sun Jan 03, 2016 4:19 pm
Location: Florida

Re: Using a style for stroke only

Post by Hoptoad »

Thank you for your reply. It makes perfect sense and I followed your directions carefully.

Success!

Thanks!
Daxel
Posts: 1088
Joined: Wed Mar 27, 2019 8:34 pm

Re: Using a style for stroke only

Post by Daxel »

Good explanation!

I adopted this technique to control the thickness of all the strokes at once, after reading about it from Greenlaw here: https://www.lostmarble.com/forum/viewto ... 13&t=22018

Just wanted to recommend it and thank him for it. Every other technique and script I used before had problems, mostly with controlling shape visibility through shape transparency, something I do a lot in combination with references to fake animated layer ordering. As only the thickness is applied, it doesn't mess with the transparency of any shape.

Proposal:

I think that it would be great to have a built in system that did just that under the hood for stroke thickness. The setting could be on the group layer settings, for example bone layers, and would be something like: "force stroke thickness on sublayers" with a checkmark to activate it and a number to set the desired thickness. That workflow would be simpler and nicer to use, as you don't have to take the time to apply the thickness style to each and every shape you create. You just go to your character, and in its bone layer you have that setting that you can change, turn on and off very comfortably.

Alternatively, the setting could be in the syle panel to enhance discoverability, as it's probably where users will be looking at when thinking about controlling the thickness of the strokes. A setting like "global stroke thickness" with the checkmark, the number and a layer that you can choose as the parent. At mouse hovering, it should have an explanation like "this setting forces the selected stroke thickness value on every shape of every sublayer" or something like that.

I don't know, the implementation doesn't matter that much but I think that having the system would be useful for everyone.
User avatar
Hoptoad
Posts: 718
Joined: Sun Jan 03, 2016 4:19 pm
Location: Florida

Re: Using a style for stroke only

Post by Hoptoad »

Wow, I like this feature.

I wanted to change all the strokes on my character, so I went to the Styles menu and selected my custom style, "stroke-A," and increased the stroke width.

Instantly, all the strokes in all the shapes of my character changed. . .at the same. Awesome.

Also awesome: because I was using the scroll wheel in the width box, strokes get thicker or thinner as I scrolled back and forth on the wheel.
Post Reply