From d0c63f8a596cd8c5f21f0a8b4a0263493b90f98b Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Fri, 27 Jan 2023 11:33:41 -0300 Subject: [PATCH] [Blender Export][DOCs] More clear how to get auto position --- README.md | 1 + docs/samples/generic_plot.kibot.yaml | 3 ++- kibot/out_blender_export.py | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0f7c31c0..fe993cdd 100644 --- a/README.md +++ b/README.md @@ -1623,6 +1623,7 @@ Notes: The default light is located at (-size*3.33, size*3.33, size*5) where size is max(width, height) of the PCB. - `camera`: [dict] Options for the camera. If none specified KiBot will create a suitable camera. + If no position is specified for the camera KiBot will look for a suitable position. * Valid keys: - `name`: [string=''] Name for the light. - `pos_x`: [number|string] X position [m]. You can use `width`, `height` and `size` for PCB dimensions. diff --git a/docs/samples/generic_plot.kibot.yaml b/docs/samples/generic_plot.kibot.yaml index 6f3d0882..57b5b158 100644 --- a/docs/samples/generic_plot.kibot.yaml +++ b/docs/samples/generic_plot.kibot.yaml @@ -109,7 +109,8 @@ outputs: # The default light is located at (-size*3.33, size*3.33, size*5) where size is max(width, height) of the PCB add_default_light: true # [dict] Options for the camera. - # If none specified KiBot will create a suitable camera + # If none specified KiBot will create a suitable camera. + # If no position is specified for the camera KiBot will look for a suitable position camera: # [string=''] Name for the light name: '' diff --git a/kibot/out_blender_export.py b/kibot/out_blender_export.py index 24141577..65d519ed 100644 --- a/kibot/out_blender_export.py +++ b/kibot/out_blender_export.py @@ -269,7 +269,8 @@ class Blender_ExportOptions(BaseOptions): The default light is located at (-size*3.33, size*3.33, size*5) where size is max(width, height) of the PCB """ self.camera = BlenderCameraOptions """ [dict] Options for the camera. - If none specified KiBot will create a suitable camera """ + If none specified KiBot will create a suitable camera. + If no position is specified for the camera KiBot will look for a suitable position """ self.render_options = BlenderRenderOptions """ *[dict] Controls how the render is done for the `render` output type """ self.point_of_view = BlenderPointOfViewOptions