How to create a fill and border on a close shape with single object


#1

hi
i need to display fill and border on certain shapes in my scene. for that i m creating references of original and using extrude and sweep which is creating lot of extra nodes ,
is there a way to add these properties as custum attributes on shapes which can be turned on and off. thanks

delete objects
r1=convertToSplineShape(rectangle length:15 width:35 name:"_BASE")
r2=Reference r1 name:"_swee"
addModifier r2 (sweep ())
r2.modifiers[#Sweep].CurrentBuiltInShape = 2
r2.modifiers[#Sweep][#Bar_Section].length = 0.1
r2.modifiers[#Sweep][#Bar_Section].width = 1
r3=Reference r1 name:"_extru"
addModifier r3 (Extrude ()) 
r3.modifiers[#Extrude].amount = 0.1

#2

To some extent you yourself answer your own question. In order to achieve the goal, you need to implement the functionality of Sweep and Extrude modifiers yourself. If you are not able to do this, then there is nothing left but to use built-in modifiers.


#3

thank you for reply, i’ll do that, so there’s no other option than to create a new plugin.