Hello everybody.
I have some skin isue and I have to refresh turbosmooth on many scenes with many characters so I want automatise it - refresh turbosmooth.
How to replace modyfier Turbosmooth on this same modyfier:
Script should look like this:
1)check all objecf for turbo smooth
2)if there is turbosmooth get properties of turbosmooth
3)delete turbosmooth
4)create turbosmooth in this same place in modyfier stack
5) set identical paramiters for this turbosmooth like in oryginal turbosmooth.
I already have:
for obj in selection do
(
for m in obj.modifiers do
(
if classOf m==turboSmooth do
(
-- <--- here I have to get settings of turbosmooth
deleteModifier obj m
addModifier meshsmooth obj m -- <--- here is error
-- <--- here I have to set settings for turbosmooth
)
)
)
For me it's important to delete and create turbosmooth in this same place in Modyfier stack.
(I used turbosmooth word 14 times in this post, I know:))
barigazy · 2013-11-24