Open
Description
The Sketchup::Page
class seems to be missing crucial methods.
For instance, I did not find a direct way to set a camera for scene via the API. There is no method like page.camera=
.
So, you have to
- Save the current view and current scene if any
- Set the page as the current scene
- set the camera in the view
- call
page.update
to store the camera (ideally, we should just unset alluse_
flags to make sure we just update the camera and then restore them after. - restore the view camera
- select the original scene if any
The same happens for rendering_options, shadows, etc....