Custom Paint.NET Plugin-Copy Selected Coords

Help and techniques for creating Air Manager Instrument Graphics

Moderators: russ, Ralph

Post Reply
Message
Author
User avatar
russ
Posts: 593
Joined: Tue Oct 27, 2015 5:37 pm

Custom Paint.NET Plugin-Copy Selected Coords

#1 Post by russ »

Here is a plug-in for paint.net that will copy the coordinates of a selected rectangle to the clipboard in the format: x , y , width , height ready to paste into your Lua scripts. This is helpful as you no longer need to read the coords off the window and type them in (and make typing mistakes).

Lets say you want to add a Dial to a Z layer over to your background image. Create a new layer in paint.NET and paste the cropped Dial image into that empty layer. Then re-size and re-position the dial graphic. When happy, select paint.NET menu Effects--> Tools--> Copy Selection Coords . The coordinates are copied to the clipboard.

Then you can paste these comma delimited values right into the appropriate place in your dial_add function.

To install the plug-in, open the zip below and copy the "CopySelectionCoords.dll" file and paste into your paint.NET 'Effects" folder ( typical path C: > Programs Files > Paint.NET > Effects )

Hope this is as helpful to you as it was to me.
Attachments
CopySelectionCoords.zip
(3.13 KiB) Downloaded 291 times
Russ Barlow
Air Manager Evangelist

Post Reply