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

[Plugin] CameraKeyMaker 1.0 (Update 2011-04-09)

Scheduled Pinned Locked Moved Plugins
118 Posts 53 Posters 136.6k Views
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.
  • T Offline
    TIG Moderator
    last edited by 8 Jan 2012, 20:27

    The screen size [width/height etc] is set in code later on - perhaps this is cropping the image ?
    I don't use this tool so I am winging it here 😕

    view.camera.set(eye, target, up)
    if @save_image
            keys = {
             ;filename => @fileName,
             ;width => 320,
             ;height => 240,
             ;antialias => true,
             ;compression => 0.9,
            ;transparent => true }
            view.write_image keys
           end
    

    have you tried changing those ?
    Trying changing the width/height proportions...

    Also perhaps add view.camera.fov=50.0 before 'keys' ???
    Also ' newCamera' is set perhaps you need to set newCamera.fov=50.0 too ?

    TIG

    1 Reply Last reply Reply Quote 0
    • S Offline
      simon le bon
      last edited by 8 Jan 2012, 21:23

      Hi TIG,

      "crop" is probably a wrong word I have used. I tell this way to express that the 30° telephoto produces like a zooming into the field. (oups my english 😳 )

      @tig said:

      try changing those
      Also perhaps add view.camera.fov=50.0 before 'keys' ???
      Also ' newCamera' is set perhaps you need to set newCamera.fov=50.0 too ?

      They both don't change the 30° scenes output

      first try:

      http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/2012-01-08_220506.jpg

      second try:

      http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/2012-01-08_215157.jpg

      I believe in the second one because:

           generate_scene = true
      
            if generate_scene
      

      is the place where I'm searching to change the camera opening field. Is the way I have add the line is good?

      😕 s

      1 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by 8 Jan 2012, 22:12

        hi,

        Your output image dims ratio is 1.333, if the window isn't a same ratio it causes problems on mac's...

        or you could try running Martin's camera Stats, might show you what's happening.http://forums.sketchucation.com/viewtopic.php?t=27835

        john

        learn from the mistakes of others, you may not live long enough to make them all yourself...

        1 Reply Last reply Reply Quote 0
        • S Offline
          simon le bon
          last edited by 8 Jan 2012, 22:46

          Hi John,

          Thank you for your cent.

          Y
          @unknownuser said:

          our output image dims ratio is 1.333, if the window isn't a same ratio it causes problems on mac's...

          I have tried a 16/9 format (ratio: 1.66 ) but I don't notice any different result ❓

           if @save_image
                  keys = {
                   ;filename => @fileName,
                   ;width => 1000,
                   ;height => 602,
          

          I have downloaded and used [Plugin] Camera Stats by MartinRinehart : it confirms my fields of view

          Cheers,
          simon

          PS: I just have sent a PM to macgile . wait and see. 😒

          1 Reply Last reply Reply Quote 0
          • topic:timeago-later,2 months
          • R Offline
            RichardU
            last edited by 4 Mar 2012, 19:04

            I see there is a preview recently posted on YouTube for version 2.0 of this tool.

            1 Reply Last reply Reply Quote 0
            • N Offline
              numerobis
              last edited by 5 Mar 2012, 11:45

              Great plugin! very nice! 😎
              but... any news on this fov problem?!? with a camera always jumping to 30° fov it's pretty useless for me... 😢

              1 Reply Last reply Reply Quote 0
              • P Offline
                Pixero
                last edited by 5 Mar 2012, 11:50

                @richardu said:

                I see there is a preview recently posted on YouTube for version 2.0 of this tool.

                Can you post a link? I can´t find it.

                1 Reply Last reply Reply Quote 0
                • R Offline
                  RichardU
                  last edited by 5 Mar 2012, 14:13

                  @pixero said:

                  Can you post a link? I can´t find it.

                  1 Reply Last reply Reply Quote 0
                  • N Offline
                    numerobis
                    last edited by 5 Mar 2012, 14:47

                    1 Reply Last reply Reply Quote 0
                    • topic:timeago-later,3 months
                    • L Offline
                      LivioE
                      last edited by 22 May 2012, 19:26

                      fantastic, thanks very much

                      1 Reply Last reply Reply Quote 0
                      • L Offline
                        LivioE
                        last edited by 23 May 2012, 07:57

                        ..bute are you sure it runs also within su8 ?

                        1 Reply Last reply Reply Quote 0
                        • T Offline
                          TIG Moderator
                          last edited by 23 May 2012, 09:30

                          @livioe said:

                          ..bute are you sure it runs also within su8 ?
                          It should work.
                          Incompatibility is usually 'backwards' to earlier versions, that don't have all of the newer version's tools.
                          Why not just install it and try it out.
                          The worst that can happen is it doesn't work !
                          Check that you have indeed installed it as directed [a common pitfall] !!
                          If so then uninstall the few files you have installed.

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • topic:timeago-later,12 months
                          • O Offline
                            Oxer
                            last edited by 16 May 2013, 15:43

                            Hi,
                            This plugin for me is very useful but I work on Mac and it didn't work because de keys codes and pathname are different between Pc and Mac.
                            I have done changes in camera_key_maker.rb and the plugin works on Mac now.
                            I use Apple Extended Keyboard.

                            CHANGES KEYS CODE lines 295 to 360


                            ONKEYDOWN (CAMERA MANUAL ANIMATION)

                            ------------------------------------

                            def onKeyDown(key, x, y, view)

                            # 63234 LEFT, 63235 RIGHT, 63232 UP, 63233 DOWN

                            if  @points_eye.size > 0
                             size = (@points_eye.size) -1
                            
                             #previous/next Key   <--[--1] || [++1]-->
                              **%(#BF0000)[if key == 63234 or key == 63235]**
                            
                              **%(#BF0000)[if key == 63234 # LEFT <--]**
                               if @index && @index > 0
                                @index -= 1
                                eye    = @points_eye.at(@index)
                                target = @points_target.at(@index)
                               else
                                @index = size
                                eye    = @points_eye.at(size)
                                target = @points_target.at(size)
                               end
                              else # RIGHT -->
                               if @index && @index < size
                                @index += 1
                                eye    = @points_eye.at(@index)
                                target = @points_target.at(@index)
                               else
                                @index = 0
                                eye    = @points_eye.at(0)
                                target = @points_target.at(0)
                               end
                              end # key 63234
                            
                              @camera.set eye, target,  @up.clone
                              Sketchup::set_status_text("Llave de Cámara: #{@index+1}", SB_PROMPT)
                              view.animation = nil
                              @edit_cam    =  false
                              @draw        =  true
                              view.invalidate
                            
                             end # key 63234/63235
                            
                             # PLAY PREVIEW
                            **%(#BF0000)[if key == 63232 # UP]**
                            
                              @edit_cam = false
                            
                              if @points_eye and @points_eye.size > 1
                               $preview  = true
                               view.animation = CameraAnimation.new(@points_eye, @points_target)
                               #view.animation = cam_anim
                               #place to last camera key
                               @index    = (@points_eye.size) -1
                              end
                              #Animation stopped"
                             end # 63232
                            
                             # EDIT current position camera key
                             %(#BF0000)[**if key == 63233 # DOWN**]
                              @edit_cam = true
                              Sketchup::set_status_text("Editar Llave de Cámara: #{@index+1} , Editar curva manualmente solo Vistas [Arriba-Abajo-Izquierda-Derecha]", SB_PROMPT)
                             end # key 63233
                            
                            end # @points_eye.size > 0
                            
                            @draw = true
                            view.invalidate
                            

                            end #onKeyDown

                            CHANGES PATHNAME

                            line 637: pathname = Sketchup.find_support_file "camera_path.html" ,"Plugins/CameraKeyMaker"

                            "The result is the end what is important is the process" by Oxer
                            [http://www.oxervision.blogspot.com/(http://www.oxervision.blogspot.com/)]

                            1 Reply Last reply Reply Quote 0
                            • topic:timeago-later,9 months
                            • R Offline
                              richyrich33
                              last edited by 21 Feb 2014, 02:46

                              Just installed this plugin through sketchucation tools, works fine though when I press enter nothing happens, must be missing something here....?

                              1 Reply Last reply Reply Quote 0
                              • E Offline
                                emerald15
                                last edited by 24 Feb 2014, 14:46

                                macgile -Something else caught my eye... in the '8.0th SketchUp' parody animation you have a clever treatment for the beam of the spotlights. I'm assuming this piece is still native sketchup...? so I'm guessing you used tubes of semi-transparent white material & hid all the edges? Or is there more to it - please share, I'd love to know.

                                1 Reply Last reply Reply Quote 0
                                • topic:timeago-later,6 months
                                • Obroni1973O Offline
                                  Obroni1973
                                  last edited by 1 Sept 2014, 14:16

                                  Hi from Germany.

                                  Would like to install your Sketchup Tool CameraKeyMaker, but the download links seem not to work well...

                                  Would really like to use ur tool, looks really good. Pls help me.......

                                  Thank you

                                  Matthias

                                  1 Reply Last reply Reply Quote 0
                                  • topic:timeago-later,7 months
                                  • duanekempD Offline
                                    duanekemp
                                    last edited by 26 Mar 2015, 12:53

                                    I know I'm coming in late in the game, but I have read this post from it's beginning until the May 16th post above. Yet, I cannot learn more about this plugin for SU 2013 or why it's not in the current extension warehouse. Has there been any further development on this plugin and has it yet been able to be confirmed to be used by exterior render engines such as Shaderlight and Vray?

                                    Duane Kemp

                                    Kemp Productions
                                    Puidoux, Switzerland
                                    Gallery:
                                    https://duanekemp.artstation.com/

                                    1 Reply Last reply Reply Quote 0
                                    • topic:timeago-later,5 months
                                    • T Offline
                                      tomaszdrgas
                                      last edited by 26 Aug 2015, 04:15

                                      Is it possible to set different Field of View, Shadows, Fog, group viseabilety etc. along the keypath? Like I can do it in standard sKetchup views and than sKetchup automaticly smoothly changes to next sceen?

                                      1 Reply Last reply Reply Quote 0
                                      • topic:timeago-later,3 months
                                      • S Offline
                                        sarkarshomit
                                        last edited by 1 Dec 2015, 07:04

                                        Will this work with Sketchup 2015 or 2016 version? i remember it worked with earler versions....
                                        I just loved this plugin but nowadays dont seem to get it to work using Su15 or Su16...please any help.

                                        1 Reply Last reply Reply Quote 0
                                        • topic:timeago-later,3 months
                                        • F Offline
                                          faust07
                                          last edited by 13 Mar 2016, 01:56

                                          Have today, after a long period of non-use, the plugin installed in SketchUp Make 2016.
                                          It is important not to forget to copy the script "bezier.rb" into the plugin folder. The plugin then works for my purpose to get paths of camera and target.

                                          1 Reply Last reply Reply Quote 0
                                          • 1
                                          • 2
                                          • 3
                                          • 4
                                          • 5
                                          • 6
                                          • 4 / 6
                                          4 / 6
                                          • First post
                                            75/118
                                            Last post
                                          Buy SketchPlus
                                          Buy SUbD
                                          Buy WrapR
                                          Buy eBook
                                          Buy Modelur
                                          Buy Vertex Tools
                                          Buy SketchCuisine
                                          Buy FormFonts

                                          Advertisement