Saving + placing camera views?

 From:  Michael Gibson
2396.11 In reply to 2396.10 
Hi Burr, I think you may actually need another new piece to make this work completely properly, which would be a method to set both Camera and Target together.

Otherwise if you set them one at a time I guess it won't work because when you set the camera it will move the target along with it, and when you set the target, it will move the camera along with it.

So I'll look at making a new method in the next v2 beta to set both in one call.


For now an example of setting just the camera point to a specific location :

script:var v = moi.ui.mainWindow.viewpanel.getViewport('3D'); v.cameraPt = moi.vectorMath.createPoint(50.2, 30.5, 10.1);

It takes a "point object", so creating that was maybe the part that was easy to miss?

- Michael