Hello,
I am trying to add sweep modifier with custom builtin shape, length and width, pivot position
single object work . . . ok!
but when selection two or more shapes or editable spline getting error
can any one solve
Thanks,
(
if selection.count > 0 then
(
for obj in selection where isKindOf obj Editable_Spline or isKindOf obj Shape do
(
--modPanel.addModToSelection (sweep ()) ui:on
addModifier obj (Sweep())
$.modifiers[#Sweep].CurrentBuiltInShape = 2
$.modifiers[#Sweep][#Bar_Section].length = 0.002
$.modifiers[#Sweep][#Bar_Section].width = 0.002
$.modifiers[#Sweep][#Bar_Section].cornerRadius = 0
$.modifiers[#Sweep].PivotAlignment = 4
)
)
)
barigazy · 2024-12-07