api-issue-tracker
api-issue-tracker copied to clipboard
Layout::SketchUpModel need camera location methods
Layout::SketchUpModel is missing the ability to view/set the camera location in relationship to the bounds.
This means that not all Layout::SketchUpModel are looking at same location.
By dragging the edges of a view with preserve_scale_on_resize = true, the camera location could be paned anywhere along the initialized scene camera plane.
The screen shot below shows 3 different Layout::SketchUpModel all with the same scene and scale.
Maybe the Layout::SketchUpModel should have a 2D camera transformation?
I think we need both a getter/sett for the viewport "centroid" point and a camera placement API similar to that of the SketchUp Ruby API. I don't know how difficult this would be to implement though as I haven't worked with the Ruby API.
@ackarkka what are your thoughts?
We definitely need to add API for camera positioning control of Sketchup viewports in LayOut models. However, we are considering changing how the internal architecture of LayOut's camera overrides for SketchUp viewports, so we don't want to write an API that will become either restrictive for us in making changes or obsolete.
Makes perfect sense!
(Feel free to keep me posted about the architectural changes)
@ackarkka
Is this up for discussion yet?