Hi there
I am trying to ad a sweep modifier via a script (using a custom shape).
The shape are skinned (a skin modifier on top of editable spline).
When I run the script it will not take the skin modifier in ("jumps" down to the editable spline as its ref).
The thing is that it works when I manual do the process. What am I missing here?
on btn_profilDoor pressed do
(
selected = $
sweepMod = sweep()
select $door
addModifier $ sweepMod
sweepMod.shapes[1] = selected
sweepMod.customShape = 1
sweepMod.PivotAlignment = 8
sweepMod.AssignCSType = 2
btn_profilDoor.text = $.name
)
Best regards
-David
miauu · 2015-10-05