Code: Select all
doc = App.newDocument()
box = doc.addObject("Part::Box", "Box")
doc.recompute()
view = box.ViewObject
line_color = [view.LineColor] * len(box.Shape.Edges)
line_color[5] = (1.0,0.0,0.0,0.0)
view.LineColorArray = line_color
Code: Select all
doc = App.newDocument()
box = doc.addObject("Part::Box", "Box")
doc.recompute()
view = box.ViewObject
line_color = [view.LineColor] * len(box.Shape.Edges)
line_color[5] = (1.0,0.0,0.0,0.0)
view.LineColorArray = line_color
Code: Select all
@bin bin/lrelease
@bin bin/lupdate
@bin bin/rcc
@bin bin/uic
The provided PR doesn't work as expected.Syres wrote: ↑Thu Apr 18, 2024 9:43 am I assume the fix has been created here: https://github.com/FreeCAD/FreeCAD/pull/13499/files
Code: Select all
self.cutMaterial.ViewObject.ShapeAppearance.DiffuseColor = (1.0, 0.85, 0.45, 0.0)
Code: Select all
self.cutMaterial.ViewObject.DiffuseColor = (1.0, 0.85, 0.45, 0.0)
With https://github.com/FreeCAD/FreeCAD/pull/13495 you will be able to set specular color to black.