UVW Multiple Objects
Hello All
I found this script from Jason Hayes which seems to be incredible, however, I am getting a script error. I am assuming AutoDesk in their infinite wisdom fucked with something minor with max2019 and now it doesnt work.
I get the following error: -- Type error: closeRolloutFloater requires RolloutFloater, got: undefined when I go to use the script.
Any ideas on how to fix this? Or if you have another script or plugin it would be greatly appreciated!
https://www.scriptspot.com/3ds-max/scripts/multiuvw-0
Macroscript MultiUVW category:"JasonHayes" toolTip:"MultiUVW"
(
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
-- MultiUVW v1.0
-- Written by: Jason Hayes
-- Description: This utility gives any selected or multiple selected objects their own
-- individual mapping coordinates you pick. MAX by default, if you have multiple
-- selected objects and apply a UVW modifier, you get one big UVW gizmo over all the objects.
-- This gives each object it's own mapping coordinates.
-- Contact: [email protected]
---------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------
rollout addUVW "Mapping Type"
(
button btn_select "Select Objects" width:135
on btn_select pressed do
(
mod_array = #()
for i in Geometry do
(
if
(
try (i.uvw_mapping;false) catch(true)
) do
(
append mod_array i
)
)
select mod_array
)--end btn_select
checkbox cb_planar "Planar" checked:false align:#left
checkbox cb_cyl "Cylindrical" checked:false align:#left
checkbox cb_sph "Spherical" checked:false align:#left
checkbox cb_swrap "Shrink Wrap" checked:false align:#left
checkbox cb_box "Box" checked:false align:#left
checkbox cb_face "Face" checked:false align:#left
checkbox cb_xyz_uvw "XYZ to UVW" checked:false align:#left
on cb_planar changed state do
(
s = getCurrentSelection()
for i in s do
(
addModifier i (uvwmap ())
i [4][1].maptype = 0
closeRolloutFloater AUVW
)
messageBox "All currently selected objects now have individual Planar UVW mapping coordinates."
)
on cb_cyl changed state do
(
s = getCurrentSelection()
for i in s do
(
addModifier i (uvwmap ())
i [4][1].maptype = 1
closeRolloutFloater AUVW
)
messageBox "All currently selected objects now have individual Cylindrical UVW mapping coordinates."
)
on cb_sph changed state do
(
s = getCurrentSelection()
for i in s do
(
addModifier i (uvwmap ())
i [4][1].maptype = 2
closeRolloutFloater AUVW
)
messageBox "All currently selected objects now have individual Spherical UVW mapping coordinates."
)
on cb_swrap changed state do
(
s = getCurrentSelection()
for i in s do
(
addModifier i (uvwmap ())
i [4][1].maptype = 3
closeRolloutFloater AUVW
)
messageBox "All currently selected objects now have individual Shrink Wrap UVW mapping coordinates."
)
on cb_box changed state do
(
s = getCurrentSelection()
for i in s do
(
addModifier i (uvwmap ())
i [4][1].maptype = 4
closeRolloutFloater AUVW
)
messageBox "All currently selected objects now have individual Box UVW mapping coordinates."
)
on cb_face changed state do
(
s = getCurrentSelection()
for i in s do
(
addModifier i (uvwmap ())
i [4][1].maptype = 5
closeRolloutFloater AUVW
)
messageBox "All currently selected objects now have individual Face UVW mapping coordinates."
)
on cb_xyz_uvw changed state do
(
s = getCurrentSelection()
for i in s do
(
addModifier i (uvwmap ())
i [4][1].maptype = 6
closeRolloutFloater AUVW
)
messageBox "All currently selected objects now have individual XYZ to UVW mapping coordinates."
)
)--end rollout
if AUVW != undefined then (closeRolloutFloater AUVW)
AUVW = newRolloutFloater "MultiUVW" 170 235
addRollout addUVW AUVW
)--end Macroscript
Comments
You should look at this
You should look at this :
https://cgpress.org/archives/cgtutorials/modifier-stack-tips-and-tricks
at 3mn28, something I discover too... You can apply at the same time to different objects a modifier not as a global box but individually.
.
Remove this line(at the end of the script) and try again:
if AUVW != undefined then (closeRolloutFloater AUVW)
Tools and Scripts for Autodesk 3dsMax
multipleUVW Error
the following error still occurs: -- Type error: closeRolloutFloater requires RolloutFloater, got: undefined
sadly the error still occurs even after removing the line as suggested... any other thoughts?