ScriptSpot

Forum topic · General Scripting

reset texture list uvw

By hippiearchitect · 2022-10-03

Description

hi, im trying to reset the texture list on multiple uvw maps on multiple objects. my script it only affecting the first uvw in the modifier list, not any others in the list, please help.

(
for theNode in selection do
for index = theNode.modifiers.count to 1 by -1 do
(
if ((classOf theNode.modifiers[index]) == Uvwmap) do
(
$.modifiers[#Unwrap_UVW].texMapList.count = 0
gc()
$.modifiers[#Unwrap_UVW].texMapIDList.count = 0
gc()
)
)

)