Replies: 1 comment
-
coincidence, I was just looking for exactly what you want with colors, but in Python, and found your question with the link, thanks;) not helping I guess, but I can confirm at least it works using Python. I wanted both helixes in below to have the same color even though they are separate conductors. I would expect it should work in Octave as well (but I am not using Octave and don't know). code helix_y0 = 0
self._helix1: CSPropMetal = self._csx.AddMetal('helix1')
self._helix1.SetColor('#cdbaab', 255)
self._helix1_waypoints = self._setup_helix(-self._groundplane_width / 2 + self._helix_width / 2 + 2, helix_y0, self._helix1)
self._helix2: CSPropMetal = self._csx.AddMetal('helix2')
self._helix2.SetColor('#cdbaab', 255)
self._helix2_waypoints = self._setup_helix(self._groundplane_width / 2 - self._helix_width / 2 - 2, helix_y0, self._helix2) result |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I'm using a 6-layer PCB and the default coloring in AppCSXCAD makes it really hard to see anything. I'm currently using AddMaterial() instead of AddMetal() for the conductors, but they seem to be displayed transparently. I would also like to be able to select a uniform substrate color and metal color, at least for the inner layers.
I found this in the Python implementation of the CSX:
https://github.com/thliebig/CSXCAD/blob/master/python/CSXCAD/CSProperties.pyx?#L196
Is there any similiar function/property for the AddMaterial() and AddMetal() functions in ocatve? Or any generic way of setting the color and transparency of an CSX property?
Greets,
Chris
Beta Was this translation helpful? Give feedback.
All reactions