can anybody teach me Unwrap_UVW LSCMSolve ? thankyou

Hi I want to write a small function to add a modifier to an object , and do a quick pelt to it. because I have many objects, so I want to do it in script. but face this problem here.

for obj in selection do
(

convertToPoly obj
addModifier obj (Unwrap_UVW())
obj.modifiers[#Unwrap_UVW].LSCMSolve()
)

add modifier successfully, but don't do quickpelt function like I press quickpeel in Unwrap_UVW modifier panel.

thankyou very much!

Comments

Comment viewing options

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

example from the help

that should help, quote:

--make sure the modifier is displayed in the Modify panel:
max modify mode
modPanel.setCurrentObject $Teapot01.Unwrap_UVW
$Teapot01.Unwrap_UVW.mappingMode 5 --enter Pelt Mapping Mode

my recent MAXScripts RSS (archive here)

Comment viewing options

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