i made this code
but there is problem
if i selct many object , error message " unable to conver : undefined to type : modifier
what problem ?
S=#()
tst = #()
sel=selection as array
for z in sel do
(
for h in z.modifiers do
(if classof h == uvwmap then
(
append tst h
)
)
for o in geometry do
(
if o.name == z.name then
(
if tst.count != 0 then
(
tmp = copy z.modifiers[#UVW_Mapping]
deleteModifier z z.uvw_mapping
addmodifier o tmp
)
else
(
--tmp = copy z.modifiers[#UVW_Mapping]
)
)
)