Skip to content
Discussion options

You must be logged in to vote

I faced a similar problem and used another solution, here is the script:

def kikitPostprocess(panel, args):
    board = panel.board
    for m in board.GetFootprints():
        if m.GetReference() == args:
            center = m.GetCenter()
            print(f'Changing origin to {center}')
            panel.setAuxiliaryOrigin(center)
            panel.setGridOrigin(center)

Then you can just add the following post-process to KiKit's JSON file:

    "post": {
         "script": "move_origin.py",
         "scriptarg": "KiKit_FID_T_3"
    },

Where KiKit_FID_T_3 is the name of the fiducial you want to use as origin. If you don't know it just open the panel with pcbnew and select the fiducial you…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by set-soft
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants