On 4/19/2023 at 9:56 AM, rburema said:I'm afraid that's hardcoded at the moment.
# Initialize camera root = controller.getScene().getRoot() camera = Camera("3d", root) diagonal = self.getBuildVolume().getDiagonalSize() if diagonal < 1: #No printer added yet. Set a default camera distance for normal-sized printers. diagonal = 375 camera.setPosition(Vector(-80, 180, 700) * diagonal / 375) camera.lookAt(Vector(0, 0, 0)) controller.getScene().setActiveCamera("3d")
The values fed to the `setPosition` function seem somewhat arbitrary, to create a view that would look 'dynamic' to a designer maybe.
In theory, you'd probably be able to make a plugin to set the camera to a more canonical position on start-up.
Thanks for the response. Kinda figured this would be the case. Not a big deal, but a small UI nitpick that would be nice for super picky designs to have control over if possible someday.
Recommended Posts
rburema 26
I'm afraid that's hardcoded at the moment.
# Initialize camera root = controller.getScene().getRoot() camera = Camera("3d", root) diagonal = self.getBuildVolume().getDiagonalSize() if diagonal < 1: #No printer added yet. Set a default camera distance for normal-sized printers. diagonal = 375 camera.setPosition(Vector(-80, 180, 700) * diagonal / 375) camera.lookAt(Vector(0, 0, 0)) controller.getScene().setActiveCamera("3d")
The values fed to the `setPosition` function seem somewhat arbitrary, to create a view that would look 'dynamic' to a designer maybe.
In theory, you'd probably be able to make a plugin to set the camera to a more canonical position on start-up.
Link to post
Share on other sites