From ac05b91fd54d994d1d53c34b1a4763407e657603 Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Sat, 17 Feb 2024 15:59:43 -0300 Subject: [PATCH] [DOCs] Mentioned KiCad 8 render 3D zoom difference --- docs/samples/generic_plot.kibot.yaml | 5 ++--- docs/source/configuration/outputs/render_3d.rst | 1 + kibot/out_render_3d.py | 3 ++- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/samples/generic_plot.kibot.yaml b/docs/samples/generic_plot.kibot.yaml index 5268f9c2..0e8462f6 100644 --- a/docs/samples/generic_plot.kibot.yaml +++ b/docs/samples/generic_plot.kibot.yaml @@ -2015,8 +2015,6 @@ outputs: scriptarg: '' # [string='auto'] [auto] Currently fixed type: 'auto' - # [boolean=false] Draw dimensions with the panel size. - dimensions: false # [dict] Used to adjust details of which part of the PCB is panelized source: # [number|string] Bottom right X coordinate of the rectangle used. Used for *rectangle* @@ -3214,7 +3212,8 @@ outputs: # [number=1280] Image width (aprox.) width: 1280 # [number=0] Zoom steps. Use positive to enlarge, get closer, and negative to reduce. - # Same result as using the mouse wheel in the 3D viewer + # Same result as using the mouse wheel in the 3D viewer. + # Note that KiCad 8 starts with a zoom to fit, so you might not even need it zoom: 0 # Design report: # Mainly oriented to be sent to the manufacturer or check PCB details. diff --git a/docs/source/configuration/outputs/render_3d.rst b/docs/source/configuration/outputs/render_3d.rst index f4f06151..693913ba 100644 --- a/docs/source/configuration/outputs/render_3d.rst +++ b/docs/source/configuration/outputs/render_3d.rst @@ -48,6 +48,7 @@ Parameters: - **view** :index:`: ` [string='top'] [top,bottom,front,rear,right,left,z,Z,y,Y,x,X] Point of view. - **zoom** :index:`: ` [number=0] Zoom steps. Use positive to enlarge, get closer, and negative to reduce. Same result as using the mouse wheel in the 3D viewer. + Note that KiCad 8 starts with a zoom to fit, so you might not even need it. - ``auto_crop`` :index:`: ` [boolean=false] When enabled the image will be post-processed to remove the empty space around the image. In this mode the `background2` is changed to be the same as `background1`. - ``background1`` :index:`: ` [string='#66667F'] First color for the background gradient. diff --git a/kibot/out_render_3d.py b/kibot/out_render_3d.py index d9e1f562..e9f0acd2 100644 --- a/kibot/out_render_3d.py +++ b/kibot/out_render_3d.py @@ -89,7 +89,8 @@ class Render3DOptions(Base3DOptionsWithHL): """ *[top,bottom,front,rear,right,left,z,Z,y,Y,x,X] Point of view """ self.zoom = 0 """ *Zoom steps. Use positive to enlarge, get closer, and negative to reduce. - Same result as using the mouse wheel in the 3D viewer """ + Same result as using the mouse wheel in the 3D viewer. + Note that KiCad 8 starts with a zoom to fit, so you might not even need it """ self.width = 1280 """ Image width (aprox.) """ self.height = 720