[Render 3D][Fixed] Avoid --use-board-stackup-colors consuming INPUT_FILE#944
[Render 3D][Fixed] Avoid --use-board-stackup-colors consuming INPUT_FILE#944Wol wants to merge 1 commit into
Conversation
With kicad-cli 10.0.4, --use-board-stackup-colors tries to greedily accept an argument after it, so if it's the last argument in your kicad-cli call, then it greedily consumes `INPUT_FILE` and kicad-cli errors out saying you've not passed a filename. This change force --pan / --pivot / --rotate to be the last in the chain, as we know those always have a parameter value after it
|
Hi @Wol ! # Colors
if self.force_stackup_colors:
colors = self.cli_stackup_colors()
elif not self.realistic:
colors = self.cli_gui_colors()
else:
colors = self.cli_user_colors()So I think we can safely remove this option from |
|
I'm not sure I understand, if I get it correctly what you say is normal, KiBot "default" colors looks brighter when rendered by KiCad, and looks ok when rendered by PcbDraw. |
- Currently not needed, we do the color translation - This switch has a bug, can take an extra parameter See #944
|
At the moment it's that the KiBot render which uses Even with Annoyingly the render which KiCad produces on desktop is perfect for what I want, just it seems to behave differently to the |
|
Without something to test is really hard to determine the reasons. The renders looks quite similar to the GUI, there are some illumination differences. If you are looking for the best results and quite good repeatability use |
|
I've stuck a minimal reproducable example at: https://github.com/Wol/kibot-render-bug-testing It should just checkout and My KiBot config file is simply: I've had to patch in the actual python file from the repo just to get around kicad-cli grabbing the option incorrectly as per the original report. The README.md file there shows what I'm seeing between the different versions - if I don't use the I guess this is more of a |
|
Ok, lets clarify a couple of things:
I get the same results you show using the current git code. No extra patch needed. |





With kicad-cli 10.0.4, --use-board-stackup-colors tries to greedily accept an argument after it, so if it's the last argument in your kicad-cli call, then it greedily consumes
INPUT_FILEand kicad-cli errors out saying you've not passed a filename.This change forces --pan / --pivot / --rotate to be the last in the chain, as we know those always have a parameter value after it.
The error was showing:
But, from the kicad-cli help:
--use-board-stackup-colors Colors defined in board stackup override those in preset [nargs=0..1] [default: false]the "nargs 0..1" tries to capture the final
INPUT_FILE