Page 1 of 2

Linewidth checkbox: don't modify points with value zero

Posted: Wed Jul 07, 2010 3:08 pm
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

Posted: Wed Jul 07, 2010 3:23 pm
by heyvern
Let me look at the code for the width tool. I know EXACTLY what you mean about that tool.

-vern

Posted: Wed Jul 07, 2010 5:21 pm
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

Posted: Wed Jul 07, 2010 6:00 pm
by sbtamu
I been quietly keeping up with this thread. So vern, your saying it can't be done?

Posted: Wed Jul 07, 2010 6:51 pm
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

Posted: Wed Jul 07, 2010 10:05 pm
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.

Posted: Wed Jul 07, 2010 10:40 pm
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

Posted: Thu Jul 08, 2010 2:15 am
by Imago
It's possible to add it changing it's file name?

Posted: Thu Jul 08, 2010 7:10 am
by Víctor Paredes
Great, Vern!
It's exactly what I wanted!!
thank you very much!
(I'm late, bye!)

Posted: Thu Jul 08, 2010 10:07 am
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

Posted: Thu Jul 08, 2010 10:39 am
by Imago
Got it, thanks Vern.
It works on AS Debut 6?

Posted: Thu Jul 08, 2010 12:00 pm
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.

Posted: Thu Jul 08, 2010 6:25 pm
by madrobot
Sorry to ask what might sound like a stupid question, but is it likely to work in AS5.6?

Posted: Thu Jul 08, 2010 6:28 pm
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

Posted: Fri Jul 09, 2010 12:37 am
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.