problem in max script

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

 
Thread Tools Search this Thread Display Modes
  10 October 2017
problem in max script

hi. i write a script for double turbo smooth but when i aply it on editable poly error apears !
can somebody help me
here is 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)
)


tnx
 
  10 October 2017

(
 function hasTurboSmooth theNode =
   (
    result = false
    local modifiresCount = theNode.modifiers.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)
)
 
  3 Weeks Ago

fn hasModifierClass node class: =
(
   local has = off
   for m in node.modifiers while not (has = iskindof m class) do ()
   has
)
/*
hasModifierClass <node> class:TurboSmooth
*/
 
reply share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright 2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 02:56 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.