Created
May 4, 2022 05:54
-
-
Save kinoshita-lab/784ca05a71e93ce8b33fdb9157121e15 to your computer and use it in GitHub Desktop.
Revisions
-
kinoshita-lab created this gist
May 4, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,11 @@ # run this script on KiPython, the terminal embedded in PCB Editor import pcbnew visibility = False # change here to the visibility that you want to set board = pcbnew.GetBoard() footprints = board.Footprints() for fp in footprints: # note: no more completion occur below loop... ref = fp.Reference() ref.SetVisible(visibility) # # type enter for 2 times # Close the PCB and open again to see the result