Heya
I cant figure it out. It should work but it dont :/
Trying to create script for selecting objects/or all in scene and then applying modifiers.
Can any1 have a look please?
I cant figure it out. It should work but it dont :/
Trying to create script for selecting objects/or all in scene and then applying modifiers.
Can any1 have a look please?
Code:
global tarGeo = #() rollout JB_Geometry "Geometry" width:328 height:246 ( button btn_TS "Turbo Smooth" pos:[8,112] width:144 height:24 radiobuttons rdo_sel_geo "Geometry selection mode " pos:[8,8] width:224 height:30 enabled:true labels:#("All Objects", "Selected Objects") default:2 columns:2 on JB_Geometry open do ( tarGeo = #() tarGeo = $* as array ) on rdo_sel_geo changed state do ( if rdo_sel_geo.state == 1 then ( tarGeo = #() tarGeo = $* as array ) else if rdo_sel_geo.state == 2 then ( tarGeo = #() tarGeo = selection as array ) ) fn tarGeoSel = ( selGeo = for i in tarGeo collect if (superclassof i == GeometryClass) then i else dontcollect ) on btn_TS pressed do ( tarGeoSel() for i in selGeo do ( addmodifier i (TurboSmooth ()) i.modifiers[#TurboSmooth].Iterations = 1 ) ) )
Comment