Notifications
Clear all
[Closed] How to flip UVs in maxscript
Oct 28, 2010 11:53 am
Simple enough task!
I couldn’t work it out, without having to employ this ‘orrible method:
fn AD_FlipUVs axis =
(
if (selection.count == 1) and (classOf $ == Editable_Poly) and (subObjectLevel == 5) then
(
subObjectLevel = 4
)
if (selection.count == 1) and (classOf $ == Editable_Poly) and (subObjectLevel == 4) then
(
if $.selectedFaces.count > 0 then
(
selectedPolys = $.EditablePoly.GetSelection #Face
modPanel.addModToSelection (Unwrap_UVW())
subObjectLevel = 3
$.modifiers[#unwrap_uvw].edit()
$.modifiers[#unwrap_uvw].selectFacesByNode selectedPolys $
case axis of
(
"horizontal": $.modifiers[#unwrap_uvw].unwrap.mirrorh()
"vertical": $.modifiers[#unwrap_uvw].unwrap.mirrorv()
"default": messagebox "invalid axis"
)
collapseStack $
subObjectLevel = 4
)
else
(
messagebox "Please select a face"
)
)
else
(
messagebox "Please select faces on an editable poly object"
)
)
Is there a way of flipping UVs without having to apply an unwrap UV modifier?
2 Replies
Oct 28, 2010 11:53 am
you could go with the UVW_xform modifier. Then use the <UVW_Xform>.U_Flip / V_Flip properties.
Oct 28, 2010 11:53 am
Seems like you should be able to scale the uv channel by-1 in whatever axis you want to flip.