Linewidth checkbox: don't modify points with value zero

Moho allows users to write new tools and plugins. Discuss scripting ideas and problems here.

Moderators: Víctor Paredes, Belgarath, slowtiger

User avatar
Víctor Paredes
Site Admin
Posts: 5826
Joined: Tue Jan 25, 2005 3:18 pm
Location: Barcelona/Chile
Contact:

Linewidth checkbox: don't modify points with value zero

Post by Víctor Paredes »

Hi dear scripters, here is an idea I'm thinking from long ago. Maybe it's not too hard to write and some of you (all fantastic awesome scripters :roll:) could implement it.
Many times I have defined the line width of a draw, and clients ask me to reduce or increase the width of the whole character. With width tool it's not hard to do, except by a detail: when you modify all points at once, width tool modifies even the ones which have zero as value to hide or end the line on some place.
It would be awesomely useful to have a checkbox like "exclude points with 0 width".

what do you think?

thanks
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
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

Let me look at the code for the width tool. I know EXACTLY what you mean about that tool.

-vern
User avatar
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

After some fiddling I got it to work. Now I just have to add the check box so it's an option. It's the chicken and the egg. If your width tool only changes points with a width you obviously MUST have the option to change a width of a point without one. obviously. It got a bit confusing for me for a few seconds. I wasn't able to change width on ANY point with out a width AT ALL. ;)

-vern
sbtamu
Posts: 1915
Joined: Mon Dec 14, 2009 8:05 pm
Location: Texas
Contact:

Post by sbtamu »

I been quietly keeping up with this thread. So vern, your saying it can't be done?
Sorry for bad animation

http://www.youtube.com/user/sbtamu
User avatar
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

OOPS!

I misunderstood the request.

Yes it can be done. I made a mistake though. I thought selgin wanted to NOT change the width of points that had NO width. What he wants is to not change the width of points with a 0 point width.

You have a stroke shape and you want tapered ends for example. You set the point width to 0 to make a tapered or thin stroke at one points. Now you want to adjust the points of the whole thing but you DON'T want to change the width of a zero width point.

I have to go back and change it. It will be easier for this change though I think.

-vern
User avatar
madrobot
Posts: 670
Joined: Mon Apr 07, 2008 7:07 am

Post by madrobot »

That sounds useful.

I am posting this because I think it sounds useful. Not because I don't like the sound of the tool, but because I DOO.
User avatar
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

Selgin,

Here it is. Let me know if this is what you wanted.

http://www.lowrestv.com/images/files/lm_line_width.zip

Make sure you back up the original tool somewhere just in case. I didn't change the name of this one. It works pretty well. It should work exactly the same as the original tool if you leave the ignore 0 width points unchecked.

It has a small drawback. If you check the ignore 0 width points and drag the tool "too far" and make the point 0 then you have to uncheck the box before you can change the point line widths again. If ANY of the points are NOT set with a point linewidth and you have the box checked, those points default to 0 and then the point linewidth can't be changed until you uncheck the box.

-vern
User avatar
Imago
Posts: 698
Joined: Wed Dec 10, 2008 12:48 am
Location: Sardinia

Post by Imago »

It's possible to add it changing it's file name?
Sorry for my bad english... Q_Q
User avatar
Víctor Paredes
Site Admin
Posts: 5826
Joined: Tue Jan 25, 2005 3:18 pm
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Great, Vern!
It's exactly what I wanted!!
thank you very much!
(I'm late, bye!)
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
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

Imago wrote:It's possible to add it changing it's file name?
The changes are very simple and the tool works EXACTLY the same if you never check the ignore 0 width points check box. There's no need for a completely different tool for this.


-vern
User avatar
Imago
Posts: 698
Joined: Wed Dec 10, 2008 12:48 am
Location: Sardinia

Post by Imago »

Got it, thanks Vern.
It works on AS Debut 6?
Sorry for my bad english... Q_Q
User avatar
Víctor Paredes
Site Admin
Posts: 5826
Joined: Tue Jan 25, 2005 3:18 pm
Location: Barcelona/Chile
Contact:

Post by Víctor Paredes »

Imago wrote:Got it, thanks Vern.
It works on AS Debut 6?
It should, try making a backup of the original and replace the tool with the heyvern's one.
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
madrobot
Posts: 670
Joined: Mon Apr 07, 2008 7:07 am

Post by madrobot »

Sorry to ask what might sound like a stupid question, but is it likely to work in AS5.6?
User avatar
heyvern
Posts: 7043
Joined: Thu Sep 01, 2005 8:49 pm

Post by heyvern »

madrobot wrote:Sorry to ask what might sound like a stupid question, but is it likely to work in AS5.6?
No probably not. Tool coding took quite a shift in v6.

-vern
User avatar
Imago
Posts: 698
Joined: Wed Dec 10, 2008 12:48 am
Location: Sardinia

Post by Imago »

heyvern wrote:
madrobot wrote:Sorry to ask what might sound like a stupid question, but is it likely to work in AS5.6?
No probably not. Tool coding took quite a shift in v6.

-vern
Really? I'm still using old 5.6 tools that I've imported on Debut 6 and them works fine.
Sorry for my bad english... Q_Q
Post Reply