I thought I ask here in case some of the scripting gurus might know the answer or can point me to a solution?
I got the reference fields for my footprints on Eco1.User like so (*):
(module Connectors:Conn_Universal_5.08_4P_TOP (layer F.Cu) (at 182.25 92.75)
(path /565B0CAA/565D84F7)
(fp_text reference XS1003 (at 0 1 180) (layer Eco1.User)
(effects (font (size 0.6 0.6) (thickness 0.1)))
)
(fp_text value JST_eXH_2P (at 0 0 180) (layer F.Fab)
(effects (font (size 0.6 0.5) (thickness 0.1)))
)
(fp_line (start -11.3 -4.
…
Now, when I do prints or plots I naturally want the reference only for the front or back, not how it is now for me that they appear for both front and back at the same time, as the Eco1.User layer doesn’t ‘flip’ like for example the F.Fab layer does when you flip the footprint.
My workaround would be to run a script before/after printing that would change the layer for each of those reference fields to the Fab layer for example, depending on the side that the footprint is on and later changing it back to where it was on.
Anybody done this before?
Changing layers of elements/text on the fly with a script?
Thanks!
*) I chose this setup for the following reasons:
- reference fields get their own prominent color so I can easily distinguish them from anything else
- there is no other layer with F/B functionality available for this purpose, as the developers seem pretty frugal in that regard (the pre-defined layers are sensible and all have a purpose that I need to use - none left)
- the Eco1.User and Eco2.User layers would be free for me, but unfortunately they don’t work with the Front/Back feature, where when you flip a footprint to the other side, the layer changes as well
- any other unused layer is missing the Front/Back functionality