SteamRoller

9 votes
Version: 
v1.72
Date Updated: 
10/05/2018

Steamroller unwraps every objects in a selection using Max's built-in flatten function based on the specified parameters. Steamroller is mainly intended as a quick and dirty method of quickly unwrapping lightmap UVs on large sets of objects, similar to the automatic unwrap in Render to Texture.

To install, run the macroscript (.mcr) or drag the file into the viewport, then go to Customize > Customize User Interface. On the toolbars tab, select "# SmallpolyScripts" from the category and drag Steamroller onto a toolbar to create a button. 

Rollout Screenshot

Upcoming features: - UV channel swapping - Updating real world scale after editing geometry

Additional Info: 

/*
Author: Michael Vladimir Nicolayeff (SmallPoly)
Email: SmallPolyArtist @ gmail.com
Social Media: http://tiny.cc/SmallPoly_SocialMedia

Change Log:
v1.72 - 2018.10.05
- Reflatten overlaps is now off by default.
v1.71 - 2018.09.18
- Added installation instructions back onto Scriptspot page.
- Added an installation instruction popup to the script that runs when the .MCR is first ran/dragged onto the viewport.
v1.7 - 2018.06.18
- Reflatten Overlaps option is now implemented. When active, this option detects overlapped faces, unwraps with an angle of 0.001, and repacks using the parameters supplied for the unwrap.
- Minor text fixes
v1.6 - 2018.06.15
- Settings are now saved when closing and loaded when opening for the duration of the Max session.
- Beta UV Tools now pops up to the right of SteamRoller instead of directly on top.
- Fixed a bug that was preventing unwrap when the face selection was being carried over
- Switched UV tools to a check button to allow obvious toggling
- UV tools now closes with steamroller
- UV tools now moves with steamroller (currently, as a fixed position)
- Added UV channel suffixes to allow unwrapping to multiple channels.
v1.5 - 2018.05.11
- Chaning spacing default to 0.001 to match Max defaults
- Adding Normalize clusters, rotate clusters, and fill holes. Thanks to Teriander for the suggestion.
- Added tools to quickly view the first several UV channels, among other things
v1.3 - 2018.02.19
- Hunting down a bug that is causing unwraps to fail when "by selection" is disabled.
v1.3 - 2018.02.07
- Bugfix for a case where some of the geometry wouldn't be unwrapped.
v1.2 - 2018.02.06
- Fixed the instance problem by using a custom unwrapper name and checking for it.
- The applied modifier is now called "SteamRoller_UVW"
- The modifier has also opened up an easy way to clear the unwrappers and check for them before flattening.
v1.1 - 2018.02.02 - Working on instance fix. Making script category consistent. May be doing some fixes soon.
v1.0 - 2014.06.27 - Initial Version

Unsolved Issues:
- Render UVWs has some really weird quirks. Something also keeps it from closing.
*/

AttachmentSize
sp_steamroller_v1.7.jpg175.34 KB
sp_steamroller_v1.72.mcr18.85 KB

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Smallpoly's picture

Instructions

I noticed today that the page was missing the installation instructions. When a macroscript is run it can often look as if nothing happened.

To install, run the macroscript (.mcr) or drag the file into the viewport, then go to Customize > Customize User Interface. On the toolbars tab, select "# SmallpolyScripts" from the category and drag Steamroller onto a toolbar to create a button.

The script has also been updated to display the instructions for making a button when the .MCR file is run.

Smallpoly's picture

Max 2018

I'm actually using Max 2018 in my daily life. What kind of issue are you having?

Smallpoly's picture

_

- (duplicate post) -

antony's picture

i found it on youtub, its

i found it on youtub, its useful, but it not work with 3ds max 2018 version

Smallpoly's picture

Try unchecking "Re-Flatten Overlaps"

Hi Peleias,

Try unchecking "Re-Flatten Overlaps" if you haven't already. Steamroller stores the state of its options for the session, so the it should stay disabled until you close Max.

This script uses the same unwrap function as Max uses internally, with the same benefits but also the same bugs and limitations. The main trouble right now is that the unwrap function often results in overlapping polygons, especially on complex curved areas like facial features.

To address this, I recently added a feature in that checks for overlaps in the result, reflattens any that exist based on a very small angle, then repacks.
It's on by default at the moment, but I may have it start off disabled for the next release.
I'll look into a couple other optimizations as well - flat walls shouldn't usually have a need to re-flatten anything.

If I had the skill I'd write something from scratch that can also take advantage of multi-threading, but at the moment that's out of my league.

Peleias's picture

Slow

It is normal to be slow for the script to run? I chose 5 items (wall from revit) and the script takes too long to run.

Smallpoly's picture

Version 1.7 Released

UVW Unwrap's overlap bug has been continuing to mess with my day job lately, so the reflatten fix is in now. :)

This is a very quick and dirty approach, so I recommend leaving this on for your initial unwraps but cleaning it up manually as needed.

Smallpoly's picture

Version 1.6

Hey! A new version is out that does the following:

v1.6 - 2018.06.15
- Settings are now saved when closing and loaded when opening for the duration of the Max session.
- Beta UV Tools now pops up to the right of SteamRoller instead of directly on top.
- Fixed a bug that was preventing unwrap when the face selection was being carried over
- Switched UV tools to a check button to allow obvious toggling
- UV tools now closes with steamroller
- UV tools now moves with steamroller (currently, as a fixed position)
- Added UV channel suffixes to allow unwrapping to multiple channels.

Teriander's picture

Thank you!

Thanks buddy! Much appreciated!

Smallpoly's picture

Changes are in

Hey, letting you know that I've added the Rotate Clusters option in, as well as normalize and fill holes.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.