Jump to content

Cycle through binary colors


---
 Share

Recommended Posts

---

Hello,

I'm looping the creation of sections in ZEISS Inspect Correlate, as follows the code below:

image.png.df942213f26de29cd41fd980231ca2a1.png

But as you can see, this way all of the sections have the same color due to having the same binary color properties.

image.png.afd67d3d14e1e6a8e178ab209580434e.png

I'd like to cycle through different colors but I don't know the binary codes for each color or if there's another way to do it.

Regards,

Gustavo

Link to comment
Share on other sites

---

Hello,

you can delete the line with 'properties' and set the line color in the diagram with:

gom.script.sys.edit_properties (
    data=[gom.app.project.inspection[f'Section {i}']],
    # Adjust colors as desired
    r = 0
    g = 100
    b = 255
    diagram_color=gom.Color (r, g, b, 255))

The last value in gom.Color() is the opacity. Please refer to ZEISS Quality Tech Guide: Diagram for background information.

Best regards,

Matthias

Edited
Link to comment
Share on other sites

 Share

×
×
  • Create New...