sketchucation logo sketchucation
    • Login
    🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Coordinates XYZ of camera and target

    Scheduled Pinned Locked Moved Plugins
    4 Posts 4 Posters 705 Views 4 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • V Offline
      Vince_540
      last edited by

      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)

      1 Reply Last reply Reply Quote 0
      • cottyC Offline
        cotty
        last edited by

        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)...

        my SketchUp gallery

        1 Reply Last reply Reply Quote 0
        • D Offline
          dfwlarch
          last edited by

          Vince, I had the same question a few months ago.

          I cobbled this together:
          cameraCoords.rb

          You 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

          1 Reply Last reply Reply Quote 0
          • dukejazzD Offline
            dukejazz
            last edited by

            Would this help
            mouse control

            class 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).position

            puts dj_point

            .
            .
            .
            .

            end
            end

            Also

            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.

            1 Reply Last reply Reply Quote 0
            • 1 / 1
            • First post
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement