Message 1 of 4
[SOLVED]Apply UVW unwrap to selected objects + flatten mapping with default settings...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm trying to compile a script which applys UVW unwrap to indiviual objects in a selection, then applys the flatten mapping with default values..
So far i can apply UVW unwrap to multiple objects in a selection.. but cannot get the 'flatten mapping' to work, and honestly dont know how too..
heres what i've got so far:
My task is for exporting a scene to unity for lightmapping purposes. I have a lightmapping plugin for max which will apply lightmaps through unity. To do so the max objects needs a uvw unwrap on all objects and correctly mapped (flatten mapping will do..). I tried just applying 'unwrappers' in the render to texture dialog but unity needs the uvw unwrap modifier in the stack.
I'm a maxscript newbie but the more i learn the more useful its becoming!...so any help will be much appreciated.
I'm trying to compile a script which applys UVW unwrap to indiviual objects in a selection, then applys the flatten mapping with default values..
So far i can apply UVW unwrap to multiple objects in a selection.. but cannot get the 'flatten mapping' to work, and honestly dont know how too..
heres what i've got so far:
(
for obj in selection do
(
if isKindOf obj geometryclass then
(
addmodifier obj (Unwrap_UVW ())
obj.modifiers
obj.modifiers.flattenMapDialog
)
)
)
My task is for exporting a scene to unity for lightmapping purposes. I have a lightmapping plugin for max which will apply lightmaps through unity. To do so the max objects needs a uvw unwrap on all objects and correctly mapped (flatten mapping will do..). I tried just applying 'unwrappers' in the render to texture dialog but unity needs the uvw unwrap modifier in the stack.
I'm a maxscript newbie but the more i learn the more useful its becoming!...so any help will be much appreciated.