You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A longstanding challenge. I described it in detail as the use case "elaboration" requested by @thomthom in #876 (comment), for why a "quick iterator" that temporarily switches off scene transitions is needed.
But being able to set page properties without going through the clunky page.update from the active view (and it's rendering options) certainly will help avoid situations that cause buggy code.
For example, in the workaround described, any ViewObserver or FramechangeObserver will fire (perhaps twice each, maybe more.) This could cause other unneeded side-effects.
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
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.The same happens for rendering_options, shadows, etc....
The text was updated successfully, but these errors were encountered: