Page 1 of 1

Stroke sharp edge turns

Posted: Wed Apr 05, 2023 1:18 pm
by lazyroll
Can you make, in this day of age, sharp edges for stroke turns? You can do that already for a long time in illustration applications.

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 4:18 pm
by slowtiger
Select point, cmd-p.

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 4:29 pm
by Greenlaw
I agree...there have been times when I needed pointy angles in stroke corners, and I have had to cheat this using some ugly techniques. :)

To the devs: it would be great to see this as a Stroke Property in the Styles Window. For reference, Adobe Illustrator has these corner options in Stroke Properties...

Image

In addition to sharp and round corner options, it also has a bevel corner option. For sharp corners, Ai also has a threshold setting for when the corner should withdraw, but I don't think we need that; IMO, this option could be distracting in animation. (FYI, I started using Ai back in 1987 (on my 512k(!) Fat Mac,) and from what I recall it had these options for Stroke even back then.)

Personally speaking, getting only the sharp corner option would be hugely helpful. The other stuff is probably 'nice to have' but not absolutely necessary.

Thanks for listening guys!

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 4:39 pm
by Greenlaw
That reminds me: Align Strokes is another set of options from that Ai panel I wish we had. Currently, Moho only does Center-line stroke but there have been times when I needed to use Inside or Outside alignment because of a particular joint technique I wanted to use.

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 5:04 pm
by SimplSam
lazyroll wrote: Wed Apr 05, 2023 1:18 pm Can you make, in this day of age, sharp edges for stroke turns? ...
At this time no.

You can however cheat - by using fat-lines. i.e. A thin Rectangle shape with sharp points at the corners, instead of a Stroke (or just a small rectangle over/underlay at the stroke corner). Animating this will be trickier, but you could use a bone / smart-bone to make it more seamless.

Image

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 9:14 pm
by lazyroll
Greenlaw wrote: Wed Apr 05, 2023 4:29 pm I agree...there have been times when I needed pointy angles in stroke corners, and I have had to cheat this using some ugly techniques. :)

To the devs: it would be great to see this as a Stroke Property in the Styles Window. For reference, Adobe Illustrator has these corner options in Stroke Properties...

Image

In addition to sharp and round corner options, it also has a bevel corner option. For sharp corners, Ai also has a threshold setting for when the corner should withdraw, but I don't think we need that; IMO, this option could be distracting in animation. (FYI, I started using Ai back in 1987 (on my 512k(!) Fat Mac,) and from what I recall it had these options for Stroke even back then.)

Personally speaking, getting only the sharp corner option would be hugely helpful. The other stuff is probably 'nice to have' but not absolutely necessary.

Thanks for listening guys!
Yes, this is exactly what I, and probably more people need :idea: Sadly, I'll have to find other ways for the specific animation style I'm doing...

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 9:29 pm
by Greenlaw
Oh, before I forget, if anyone needs to use stroke alignment in Moho now, you can sort of do this using a custom brush. Like so...

Image
All you need to do is make a brush that looks like a semi-circle for one side, and flip a copy of the brush for the other side. Here's what my 'Inside' brush looks like...

Image

It's not exactly what Ai does with Stroke Alignment and it isn't perfect for every usage, but I've made good use of this technique from time to time.

Enjoy! :D

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 9:42 pm
by Greenlaw
Hmm...after my last post, I thought maybe the answer to getting a sharp corner was staring at me: Selecting the inside alignment brush seemed like it should create a sharp corner because the curve's edge now becomes the 'outer' edge of the shape. Unfortunately, the line isn't trimmed the way I expected for the result we want...

Image

Darn...so close! I guess I'd only used this technique for curvy-curves (specifically rounded ends for elbow and knee joints,) or I'd seen this result before and forgot about it.

Well, that's all the time I have. Maybe this technique will inspire a better idea from someone else. :D

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 10:10 pm
by Greenlaw
After a little more though, suppose I made a point near and on both sides of the corner point, I could taper the stroke so the semi-circle's edge disappears before it reaches the corner point?

I don't have time to test that but maybe someone else can? TBH, it's probably not practical to rig and animate this. This technique basically falls into that 'ugly' category I mentioned earlier. :D

Re: Stroke sharp edge turns

Posted: Wed Apr 05, 2023 10:22 pm
by Greenlaw
Another idea: I could bind a mask to trim off the exposed semi-circle shape so that it moves and reshapes with the bones. This is likely better than my last idea. Again, no time to test, just another idea for anyone who has the time.

Actually, this is another 'ugly' solution because you'd have to do this for every sharp angle in your drawing. Sigh!