New free 64bit plugin: Straighten UV's (gridding, tiling, etc.)

Vorlath

New member
I wrote a Lightwave plugin (9.6 minimum) that let's you grid a rectangular UV selection of quads (only works on quads). Works on points, edges and polygons (even though you can't select edges in the UV pane). The polygon one is likely the best one to use since it avoid ambiguity in your selection (ie. one polygon uv strips that are separated via discontinuous UV's). Oh, did I mention it works with discontinuous UV's? Even if the UV's wrap around onto itself.

This plugin basically takes the four corners of your selection and grids the points inside to be either A) evenly distributed or B) use the average distance between rows/columns.

There are 4 options:
1. Rectangular (makes the selection rectangular)
2. Axis aligned (aligns selection to X or Y axis)
3. Evenly distribute long axis.
4. Evenly distribute short axis.

Long and short axis go by the number of quads in the selection, not the actual length.

This plugin can really clean up your UV's rather quickly. One trick is to move the corners where you want, select #3 and #4 and click Ok. You'll get evenly gridded UV's inside those corner points.

Note that it tries to check for a uniform rectangular selection, but it isn't 100% robust. If you have discontinuous UV's inside your selection and the UV's aren't EXACTLY at the same position, some UV's won't be moved correctly. This is the first version, so save your work before using it. Let me know if you encounter any issues and if you're using this. I'd like to get some feedback if this is a useful plugin.
 

Attachments

  • straightenuv.zip
    32.4 KB · Views: 802
Last edited:

omichon

Member
Thank you very much. Very straightforward and a real time saver :thumbsup:

Edit : I must be missing something though, since it seems to work with polygons selection only.
In Point/Edge modes I get a "No Polygons" Error message.
 
Last edited:

Vorlath

New member
The algorithm builds up a list of points, edges and polygons regardless of the selection mode. The only way to get "No polygons" that I can see is if your point selection isn't made up of quads. Then again, it's possible my edge and polygon detection algorithm is faulty.
 

Vorlath

New member
Glad it works!

However, I encountered a situation where my selection caused the plugin to go into an infinite loop and eat up RAM. I think my selection was not rectangular. If I can reproduce this, I'll fix it and post an update. So again, save your work before using this. Having said that, I haven't encountered any issues on proper selections that are rectangular and has correct UV's.
 

Vorlath

New member
This is the fixed version (v1.1). If a mod sees this, could you delete the attachment in the initial post? Thanks!
 

Attachments

  • StraightenUV1.1.zip
    32.4 KB · Views: 535

britepencil

New member
question, does the process take alot of time I've created a quad sphere added UV (spherical) and applied StraightenUV 1.1 (point mode) and nadda seems like LW hangs

LW2016.3(64)
 
Top Bottom