Notifications
Clear all
[Closed] Undocumented Maxscript Unwrap functions
Dec 08, 2009 4:54 pm
Hi,
In 'stdplugs\stdscripts\modifier_uvwunwrap_dialog.ms' (3dsmax 2010)
The event handlers for Loop,Ring Align and space buttons call functions that don't show in the Maxscript help (even a search yields no result), or else I'm blind.
So I thought I should share these really usefull functions, and hint our master Bobo ;) to include them in the next release.
unwrapMod = modpanel.getcurrentobject() -- Unwrap UVW modifier
unwrapMod.uvLoop 0 -- select uv Loop
unwrapMod.uvLoop 1 -- grow uv Loop
unwrapMod.uvLoop -1 -- shrink uv Loop
unwrapMod.uvRing 0 -- select uv Ring
unwrapMod.uvRing 1 -- grow uv Ring
unwrapMod.uvRing -1 -- shrink uv Ring
unwrapMod.align true -- Align U
unwrapMod.align false -- Align V
unwrapMod.space true -- Space evenly in U
unwrapMod.space false -- Space evenly in V
2 Replies
Dec 08, 2009 4:54 pm
Those methods show up if you run ‘showinterfaces (Unwrap_UVW())’
I diffed the results from Max2009 and Max2010 and found two other new entries – a getter/setter pair for the ‘TweakMode’
According to showinterfaces, the undocumented additions are:
<boolean>getTweakMode()
<void>setTweakMode <boolean>on
<void>uvLoop <integer>mode
<void>uvRing <integer>mode
<void>align <boolean>horizontal
<void>space <boolean>horizontal