double turbosmooth script

hi. i have few programming knoledge and try to write this code from screen in one tutorial and some fixing . but when i use it on the box make error . (unknown prperty
"modifire" in box001)

here is the code:
(
function hasTurboSmooth theNode=
(
result = false
local modifiresCount = theNode.modifires.count
if modifiresCount > 0 do
(
for n in 1 to modifiersCount while not result do
(
if classof theNode.modifiers[n] == turbosmooth do result = true
)
)

result
)

local allSelectedGeo = for curNode in $selection as array where superclassof curNode == Geometryclass and not hasTurboSmooth curNode collect curNode
addmodifier allSelectedGeo (TurboSmooth iteration:2 sepBySmGroups:true)
addmodifier allSelectedGeo (TurboSmooth iteration:1)
)

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
jahman's picture

.

theNode.modifires.count

look carefully what's written in the error

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.