Feature request:
- UI allow to change opacity/color of showed objects, in "Objects" subwindow
- Support default opacity setting
- Support automatically give different color to objects, in a pre-set color list.
Currently we usually need to write
show_object(xxx, options={'alpha': 0.5} )
for every object.
Having to write many options={'alpha': 0.5} is tedious.
I've tried this workaround:
import cadquery as cq
box1 = cq.Workplane() .rect(10, 10) .extrude(10)
box2 = box1.val().moved((20, 0, 0))
def show(obj):
show_object(obj, options={'alpha': 0.5})
show(box1)
show(box2)
But resulting in only box2 is showed, due to have same name. show_object() used obj as object name,