I want to modify camera of Layout::SketchUpMode with Layout Ruby API, but don’t modify camear of Sketchup::Page.
How can do it?
I agree with Rafael, you can change the current view camera using: Sketchup::View#camera=
If the current page is set to remember its own camera, then as long as you do not update the scene page, then the view camera is only temporary. Meaning that if the user changes to a scene page that has its own camera memorized, then the view will be changed to match what that scene page remembers.
If you want the model view camera to not be overriden, then you need to switch off Sketchup::Page#use_camera=()
for all scene pages. This seems somewhat overkill as one of the main reasons to have scene pages is for separate and distinct views of the model object(s).
@rtches @DanRathbun @Three_H
Sorry. I want to say use Layout API.
I thought when I said SketchUpModel, you would associate it with Layout::SketchUpMode