Page 1 of 1

Idea: Attach to nearest neighbor

Posted: Mon Mar 16, 2009 7:15 pm
by dueyftw
Script idea

Attach to nearest neighbor.

I find that when I'm drawing with add a point and other times when I think that all the points are connected but are not. I could use a script that looks at all the points that only have one connection, then connect to the nearest point. It would be given a range amount, so points wouldn’t be traveling across the screen.

Dale

Posted: Mon Mar 16, 2009 7:34 pm
by mkelley
It's there already.

It's called AutoWeld, and can be reached from the menu by Scripts/Other. It works on selected points, so just select all if you want.

Posted: Mon Mar 16, 2009 11:40 pm
by dueyftw
Ok, It only works on points that are really close. I need something with a little more range. Is there someone who could modified the script so points don't have to be on top of each other.

Dale

Posted: Tue Mar 17, 2009 12:32 am
by DK
I agree dueyftw. The auto weld was a feature I suggested to Mike way back in the early Moho days to combat those darn loose points. The only roblem is it does'nt have an adjustable range. I wonder how hard it would be to adjust the existing script?

Cheers
D.K

Posted: Tue Mar 17, 2009 12:46 am
by synthsin75
Autoweld could be modified pretty easy. Double, triple the current nearness for welds? Making it adjustable would require turning into a tool script or adding a popup menu.


But I just tested it, and it already does have a sort of adjustment. You see the estimation of nearness is based on screen coordinates. So if you select all and zoom way out, almost any points are now very close on the screen.

:D

Posted: Tue Mar 17, 2009 12:59 am
by DK
Wow!! sythsin75. You constantly astound me with your AS knowledge!!!

Thanks
D.K

Posted: Tue Mar 17, 2009 1:06 am
by synthsin75
:oops: I just enjoy the problem solving. Most of this stuff I don't know about until someone asks the right question and I go chasing after it. :wink:

Posted: Tue Mar 17, 2009 1:09 am
by dueyftw
Thanks everyone. You think you know everything. Only to find you don't. Zooming in and out isn't a problem. I'll just use the slider on the wacom.

Dale