Jump to content

Recommended Posts

Tile Count v1.0

Render > Tile Count

 

Description: Draws a counter on tiled, spritesheet-like images.

Download:

TileCount.zip (Zip with bat installer)

TileCount.dll (Just the dll)

 

Before

image.png.485dcfd7c84bbf90fadbdbd7e70f93df.png

After

image.png.11662b384bfd19d34e10c7a7b2eeee0d.png

UI

image.png.ec6a3cc5248a9af2a8be1c8cac41cf6b.png

Long description

 

This plugin counts the tiles (or sprites) of a spritesheet-like image and draws a number on top of each one. It divides the entire image in a grid, and as long as there is at least a single pixel with an alpha greater than Alpha threshold on a tile, this tile will be counted. The counting goes from top left to bottom right. If this sounds complicated, I think the example images above will do a better explanation.

 

Important notes

 

  • This plugin assumes your image is already properly divided into a grid.
  • This assumes all grid cells have the same size.
  • You can set Alpha threshold to -1; this will cause every cell in the grid to be counted.
  • This does not take your selection into consideration, it works with the entire image. I might fix this if I ever get around to it.

 

Less important notes

 

This is my first plugin. I really needed to count a lot of sprites for a project and there was no way I was going to do that manually, so I wrote this in like, 3 hours... sorry if it lacks features or has bugs. I thought it may be useful to others, that's why I'm sharing it here. I think someone might even find another use for it, like... making a calendar. If you're interested, here's the source code: TileCount.cs 

Edited by HCGS
  • Like 3
  • Upvote 1
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...