ScriptSpot

Forum topic · General Scripting

can anybody teach me Unwrap_UVW LSCMSolve ? thankyou

By dongke · 2013-01-12

Description

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 (1)

example from the help

Anubis · 2013-01-12

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