7
$\begingroup$

I was just wondering as it's something I often find myself doing, but is there a automated way to scale selected UVs to fit to the edges of the image boundary in the UV editor?

Currently I have a process which isn't too time consuming, but nonetheless a little bit more so than hitting a button. These images show my process and what I am trying to achieve.

1. Calculate scale value 2. Apply scale and realign

Note: that I scaled everything by the same value, but if I wanted to fit the image square, I would have to do this process once for width and again for height.

Is there a built-in function to do this?

$\endgroup$
13
$\begingroup$

Grab to corner + Scale (not preserving proprtions)

With the Rotation/Scaling Pivot set to 2D Cursor and the cursor in the origin (0,0), activate the Constraint to Image Bounds option, grab the island in the corner and then scale:

enter image description here


Pack island+Scale (preserving proportions)

As stated by the Blender Reference Manual:

The Pack Islands tool, shortcut Ctrl+P, will uniformly scale, then individually transform each Island so that they fill up the UV space as much as possible.

enter image description here

You can select multiple UV island to scale them while maintaining their relative proportions, or even just one as in the example to quickly scale every possible previusly unwrapped island to the bounds being sure it will not be stretched.

Notice that the box in the toolshelf is unchecked to prevent island's rotation.

| improve this answer | |
$\endgroup$
  • $\begingroup$ Awesome! I'd seen the projection using bounds in other answers on BSE, but I didn't know about constrain to image bounds. I didn't realise pack islands would work individually either. My way seems really stupid now :) Thanks! $\endgroup$ – MrFlamey Oct 7 '15 at 0:54
6
$\begingroup$

When unwrapping you can use Project from view (Bounds) to fit the UVs using the full image on the UV editor.

enter image description here

Or you can edit the UVs using the Constrain to image bounds option:

enter image description here

| improve this answer | |
$\endgroup$
  • $\begingroup$ +1, I had to unwrap something from top view but it was a pain to scale it to match the bounds, glad I found this before I inflicted too much brain damage to myself $\endgroup$ – Nicolas Martel Oct 18 '16 at 3:17
3
$\begingroup$

U > Project from view (Bounds)

In the Tool Shelf (N) or F6, check Scale to Bounds enter image description here

enter image description here

For further information see the Blender Manual

| improve this answer | |
$\endgroup$
  • $\begingroup$ Thanks, but this is not quite what I'm looking for, since my object is complex and I arranged the UVs in a grid using the follow quads option. $\endgroup$ – MrFlamey Oct 7 '15 at 0:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.