- Code: Select all
uMod = Unwrella()
addModifier obj uMod
uMod.map_channel = 3 -- map channel to unwrap into
uMod.keep_seams = true
uMod.source_channel = 1
uMod.polygonal = true
uMod.mode = 0
uMod.unwrap()
uMod.unwrap()
the above code works, but the result is not what i would expect for keep_seams. in fact, it's identical to the result that i get if i leave keep_seams set to false. if i do the same thing via the modifier's interface, it works and i get the results i'm expecting. i could use some guidance -- am i scripting this incorrectly? i have been working off of the available documentation at: http://maxdoc.unwrella.com/MAXScript.html
i would use the interface instead if it were feasible, but we're operating on thousands of objects, which means that we need to script as much as possible.
one other wierd thing is that i have to call unwrap() twice to get the unwrap to work. additionally in the interface, i have to click "Unwrap" twice to get the process to start. any thoughts on that?
thanks,
-tony.