Skip to content

Sketchup::Page - Missing methods (set camera, rendering options, ....) #878

Open
@Fredosixx

Description

@Fredosixx

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

  1. Save the current view and current scene if any
  2. Set the page as the current scene
  3. set the camera in the view
  4. call page.update to store the camera (ideally, we should just unset all use_ flags to make sure we just update the camera and then restore them after.
  5. restore the view camera
  6. select the original scene if any

The same happens for rendering_options, shadows, etc....

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions