Coordinates XYZ of camera and target
-
Hi everbody,
I'm looking for a plugin which allows me (and some of us) to enter the coordinates XYZ of the camera but especially of the target (and why not, the focal lenght). I found "camera_export_import.rb", globally interesting but (how can I say ?) ... not really easy to use, for what I want and need.
For example, I used recently Artlantis and I would like to place my SU camera exactly with the same parameters, and I never could.
If anyone have any idea, thx a lot.
If not, ... how make this plugin ? Have you some "informations", tutorial, ... ? even if I have to spend some days, weeks, more ... to write it, why not.Vincent
(Belgium) -
Did you take a look at the Advanced camera tools in your PRO version? Maybe there are such functions in it (I never tried it)...
-
Vince, I had the same question a few months ago.
I cobbled this together:
cameraCoords.rbYou can also look at the code for CameraKeyMaker. I've never used it, but from looking at the code it implements a lot of features that you might be looking for.
http://sketchucation.com/forums/viewtopic.php?f=323&t=36430 -
Would this help
mouse controlclass DrawBoxPointDJ
def onLButtonDown( flag,x, y,dj_view )
Sketchup.active_model.start_operation "onLButtonDown",true,true,true
dj_xdown = x;dj_ydown = y;dj_view="drawBoxPoint_dj";dj_point=(Sketchup.active_model.active_view.inputpoint x,y).positionputs dj_point
.
.
.
.end
endAlso
BMVBv1-Script
by T. Marek
Sections: Animation - Camera ; Materials - Rendering
Draws a face that covers precisely current view. Created face can be used for B&W image with alpha transparency taken from the same camera possition. Face can be semitransparent and have some openings.
Advertisement