Looking for a stroke script
Moderators: Víctor Paredes, Belgarath, slowtiger
Looking for a stroke script
Just wondering if anyone knows of a script that allows you to adjust the strokes position. As it stands the stoke rides the middle of the line. I would like to have the option to have the stroke on the inside or the outside as well, like in illustrator.
Thanks for any assistance
Troy
Thanks for any assistance
Troy
- synthsin75
- Posts: 9979
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Looking for a stroke script
Sorry, but that can't be changed by script.
Depending on what you need to do, you could mask a stroke to only show on one side of the curve or the other. But that's not likely to be very flexible.
Depending on what you need to do, you could mask a stroke to only show on one side of the curve or the other. But that's not likely to be very flexible.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Looking for a stroke script
Thanks for the info, maybe in a future release.
Re: Looking for a stroke script
Just a few thoughts:
I wonder if you can fake it using a Brush pattern that is only 'half stroked'. Try making two brushes, one for inside and one for outside strokes. I think the brush would look like a half circle? Sorry, I haven't actually made a brush myself yet, so not completely sure about this.
Another approach is to paste an unstroked shape on top of a stroked shape. That will 'stamp out' the inside portion of the stroke. I imagine if you use the unstroked shape as a mask, it should trim the outside part of the stroked shape.
I know these are all just workarounds but should work if you're in a pinch.
Maybe they'll add it in a future release if you submit a request.
I wonder if you can fake it using a Brush pattern that is only 'half stroked'. Try making two brushes, one for inside and one for outside strokes. I think the brush would look like a half circle? Sorry, I haven't actually made a brush myself yet, so not completely sure about this.
Another approach is to paste an unstroked shape on top of a stroked shape. That will 'stamp out' the inside portion of the stroke. I imagine if you use the unstroked shape as a mask, it should trim the outside part of the stroked shape.
I know these are all just workarounds but should work if you're in a pinch.
Maybe they'll add it in a future release if you submit a request.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Re: Looking for a stroke script
I tried the two shape tricks and they work fine.
Sorry, TinyPic seems to be down so can't upload the test pics.
Sorry, TinyPic seems to be down so can't upload the test pics.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Re: Looking for a stroke script
Thanks for the suggestions!
Re: Looking for a stroke script
I just tried making a half stroke brush. Yes, a 'half-circle' shape in vertical orientation works for this. To make it work, enable Align Brush With Curve, zero out Jitter and Angle, and set a lower Spacing distance to minimize 'bumps' (12 seems to work well in my test example.)
Maybe a Pill shape would work better? TBD. Also, try a half square shape.
Maybe a Pill shape would work better? TBD. Also, try a half square shape.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
- synthsin75
- Posts: 9979
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Looking for a stroke script
Great trick, Dennis!
A rectangle brush works fantastic. And you only need one with a rectangle on either the right or left side. Then depending on the direction you draw the shape will determine if the stroke is interior or exterior. Here's the test brush I created:
A rectangle brush works fantastic. And you only need one with a rectangle on either the right or left side. Then depending on the direction you draw the shape will determine if the stroke is interior or exterior. Here's the test brush I created:
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Looking for a stroke script
Thanks for carrying that out, Wes! Glad to hear it works.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
- synthsin75
- Posts: 9979
- Joined: Mon Jan 14, 2008 11:20 pm
- Location: Oklahoma
- Contact:
Re: Looking for a stroke script
The one wrinkle is that scaling it past zero or flipping will invert the stroke. Good if you didn't draw it the way you wanted it, but bad if your animation needs to do either of those.
- Wes
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Donations: https://www.paypal.com/paypalme/synthsin75 (Thx, everyone.)
https://www.youtube.com/user/synthsin75
Scripting reference: https://mohoscripting.com/
Re: Looking for a stroke script
That’s the issue I have run into Wes using this technique. Is there a way to freeze a stroke? When using them as textures and animating the stroke expansion shows. Just wondering I have been experimenting with using stokes as shadows and just looking for options. Thanks to the both of you for your input.
- hayasidist
- Posts: 3526
- Joined: Wed Feb 16, 2011 8:12 pm
- Location: Kent, England
Re: Looking for a stroke script
this request has been around for a while in various forms - mantis 30122 -- maybe worth adding another voice and a pointer to this thread there?Greenlaw wrote:Maybe they'll add it in a future release...
Re: Looking for a stroke script
Now that Tinypic is back up, here are the other techniques illustrated.
For the mask technique, you'll probably want to make the mask layer a reference.
For the mask technique, you'll probably want to make the mask layer a reference.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Re: Looking for a stroke script
Oh, another technique for 'outside' is to enable Outline in the Layer Property. If your shape has no stroke, this will create an outside stroke effect.
This only works at render time though.
I swear, there's like a zillion ways to do stuff in Moho...and thank goodness for that. But it would still be nice to be able to just click between options for Stroke Center, Inside and Outside though.
This only works at render time though.
I swear, there's like a zillion ways to do stuff in Moho...and thank goodness for that. But it would still be nice to be able to just click between options for Stroke Center, Inside and Outside though.
D.R. Greenlaw
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion
Artist/Partner - Little Green Dog | Little Green Dog Channel on Vimeo | Greenlaw's Demo Reel 2020 Edtion