A stupid, but useful, utility

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

Moderators: Víctor Paredes, Belgarath, slowtiger

Post Reply
User avatar
7feet
Posts: 840
Joined: Wed Aug 04, 2004 5:45 am
Location: L.I., New Yawk.
Contact:

A stupid, but useful, utility

Post by 7feet »

Took 5 minutes, but I needed it. A tool to count how many points are in the current vector layer. Click on the main window and you'll get the number of points in that layer. Mostly for those "why isn't the %@#$*& switch interpolation working?!?" moments. Prints it out in the Lua window. I'll make it more proper momentarily. Extract to the [Moho Installation Folder]>Scripts>Tool folder.

http://www.sharemation.com/Moho/ToolScr ... tsTool.zip

That one lost point can kill you.
User avatar
Hiddicop
Posts: 250
Joined: Sun Nov 07, 2004 4:18 pm
Location: Sweden

Post by Hiddicop »

Interpolation-troubles isn't good for your health. You've saved my life!
User avatar
Hiddicop
Posts: 250
Joined: Sun Nov 07, 2004 4:18 pm
Location: Sweden

Post by Hiddicop »

Though one thing would be great(er). If you could do so you only counted the selected points. That the total amounts of points are the same in the different layers isn't to much help if their not in the same shapes. If I have three squares - one with four points, one with six points and one with eight points . in one layer, and in the other layer I have three three squares - all with six points - then the total number of points will be the same, but the interpolation won't be so nice.

I suppose (hope) that shouldn't be to hard to accomplish...
User avatar
7feet
Posts: 840
Joined: Wed Aug 04, 2004 5:45 am
Location: L.I., New Yawk.
Contact:

Post by 7feet »

File above updated. Added "only selected" checkbox, <ALT> to select, and a proper display.
User avatar
Hiddicop
Posts: 250
Joined: Sun Nov 07, 2004 4:18 pm
Location: Sweden

Post by Hiddicop »

Thanks! This will save tons of time and irritation!
User avatar
7feet
Posts: 840
Joined: Wed Aug 04, 2004 5:45 am
Location: L.I., New Yawk.
Contact:

Post by 7feet »

Your welcome. It was something that was bugging me.
Post Reply