I want to have one pixel on the UV map per square for a voxel style model. I set the texture interpolation to "closest" (rather than linear).
I used "Smart UV project":
By hand counting the UV map I got 49 rows and 49 columns. Then I changed the texture to be 49 x 49 pixels. I want to use much higher detail meshes so I'd rather not have to hand count the rows and columns in the UV map.
Any ideas about doing this? Maybe there is a plugin or script?
BTW someone asked a similar question 3 years and 8 months ago and no one responded....
Dimensions of Smart Project UV Unwrap
Edit: It would be good if it can also handle when Decimate - Planar is used with voxel like meshes and Smart UV Project - it could detect the minimum size of a square then divide it by the width and height of the UV map... (which gives 49 in this example)
An idea - a script/plugin could look at all of the U coordinates and all of the V coordinates and see the minimum gap between them. In my example it should be 1/49 or 0.020408 in normalized units (0 to 1 for U and V).


