sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    [Plugin] CameraControls

    Scheduled Pinned Locked Moved Plugins
    36 Posts 15 Posters 27.1k Views 15 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.
    • R Offline
      RickW
      last edited by RickW

      Announcing CameraControls! (PC only for now - working on the Mac version)

      CameraControls provides tighter user control over camera positioning by providing sliders and direct numeric entry for pan, tilt, and roll, through a webDialog.

      The dialog also responds real-time to changes in the view (activating a scene tab or using the SketchUp-native camera manipulation tools).

      To use CameraControls, select Camera Controls from the Camera menu in SketchUp. CameraControls is also compatible with Organizer.

      RickW
      [www.smustard.com](http://www.smustard.com)

      1 Reply Last reply Reply Quote 0
      • Chris FullmerC Offline
        Chris Fullmer
        last edited by

        Cool, thanks Rick. I'll be looking at it shortly!

        Chris

        Lately you've been tan, suspicious for the winter.
        All my Plugins I've written

        1 Reply Last reply Reply Quote 0
        • A Offline
          autarchos
          last edited by

          this is fantastic! (i was just looking for a script like this yesterday in fact.) so i know it will come in handy on future projects. many thanks.

          pete

          1 Reply Last reply Reply Quote 0
          • Chris FullmerC Offline
            Chris Fullmer
            last edited by

            Hey Rick, its not working for me. It just gives constant errors to the console. This is the first of them

            Error: #<NoMethodError: undefined method atan' for #<CameraControls:0x8e8fb98>> C:/Program Files/Google/Google SketchUp 7/Plugins/cameracontrols.rb:153:in set_angles'
            C:/Program Files/Google/Google SketchUp 7/Plugins/cameracontrols.rb:216:in `onViewChanged'
            C:/Program Files/Google/Google SketchUp 7/Plugins/cameracontrols.rb:153

            Chris

            Lately you've been tan, suspicious for the winter.
            All my Plugins I've written

            1 Reply Last reply Reply Quote 0
            • TIGT Offline
              TIG Moderator
              last edited by

              @chris fullmer said:

              ...its not working for me.:
              Error: #<NoMethodError: undefined method atan' for #<CameraControls:0x8e8fb98>> C:/Program Files/Google/Google SketchUp 7/Plugins/cameracontrols.rb:153:in set_angles'

              Chris:
              Strangely it works fine for me - although I can't find the script that's defining ' atan' as a Math function !
              Try adding Math:: in front of atan in line 153 - I did and it still works for me - so it might then work for you ?

              Also Rick: if you run the tool in 'parallel projection' then the 'fov' returns errors at lines 72/97/121 [linked to 79/104/139 as the optional 'perspective' and 'fov' are NOT applicable to pp] - it all shows in the Console - these can easily be trapped in the 3 locations... I have already 'fixed' mine...

              fov = @camera.fov if perspective
              ###...
              if perspective
                 @view.camera = Sketchup;;Camera.new(@eye,newtarget,newup,perspective,fov)
              else
                 @view.camera = Sketchup;;Camera.new(@eye,newtarget,newup)
              end#if
              

              Thanks for another great tool by the way... 😄

              TIG

              1 Reply Last reply Reply Quote 0
              • R Offline
                RickW
                last edited by

                TIG: Thanks for the note - I forgot about parallel projection 😳
                I'll also add Math::atan to (hopefully) fix Chris's problem.

                [EDIT] New version uploaded to Smustard

                RickW
                [www.smustard.com](http://www.smustard.com)

                1 Reply Last reply Reply Quote 0
                • K Offline
                  Khai
                  last edited by

                  erm there's something on the camera controls page that kills my Firefox. something about a C library not loading correctly.

                  1 Reply Last reply Reply Quote 0
                  • Chris FullmerC Offline
                    Chris Fullmer
                    last edited by

                    @tig said:

                    Try adding Math:: in front of atan in line 153

                    Ding!Ding!Ding!Ding!

                    We have a winner! That solved it all for me Tig, thanks!

                    Works great now Rick, very cool!

                    Chris

                    Lately you've been tan, suspicious for the winter.
                    All my Plugins I've written

                    1 Reply Last reply Reply Quote 0
                    • J Offline
                      Jim
                      last edited by

                      Rick,

                      Did you write the Javascript slider?

                      Hi

                      1 Reply Last reply Reply Quote 0
                      • R Offline
                        RickW
                        last edited by

                        @jim said:

                        Did you write the Javascript slider?

                        Yep. Thought about an out-of-the-box thing, but decided to go custom.

                        RickW
                        [www.smustard.com](http://www.smustard.com)

                        1 Reply Last reply Reply Quote 0
                        • M Offline
                          mike d
                          last edited by

                          thanks rick

                          The grass is always GREENER on the roof.

                          1 Reply Last reply Reply Quote 0
                          • R Offline
                            RickW
                            last edited by

                            @khai said:

                            erm there's something on the camera controls page that kills my Firefox. something about a C library not loading correctly.

                            Which page? The Smustard page or the webDialog?

                            RickW
                            [www.smustard.com](http://www.smustard.com)

                            1 Reply Last reply Reply Quote 0
                            • K Offline
                              Khai
                              last edited by

                              @rickw said:

                              @khai said:

                              erm there's something on the camera controls page that kills my Firefox. something about a C library not loading correctly.

                              Which page? The Smustard page or the webDialog?

                              the Smustard page
                              I had to use Chrome to get to it in the end...Fire fox complains about the loading and locks out.

                              1 Reply Last reply Reply Quote 0
                              • Chris FullmerC Offline
                                Chris Fullmer
                                last edited by

                                My FireFox goes in just fine. I don't have any of those ad removel apps installed, just vanilla FireFox.

                                version 3.0.13

                                Lately you've been tan, suspicious for the winter.
                                All my Plugins I've written

                                1 Reply Last reply Reply Quote 0
                                • K Offline
                                  Khai
                                  last edited by

                                  actually it wasn't an ad removal problem at all.. (btw the Firefox version is 3.5.2 the latest)

                                  it's Videolan, my video player. it's having a problem with the embedded video on that page.. working on it..

                                  1 Reply Last reply Reply Quote 0
                                  • bagateloB Offline
                                    bagatelo
                                    last edited by

                                    Thank you very much for the tool! I loved.
                                    A thing that could be implemented would be the possibility to arise or to go down the camera, to change the zoom, or to alter the vision field, or Pan by slide.

                                    While the cat's away, the mice will play

                                    1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      RickW
                                      last edited by

                                      Thanks for the suggestions. I'll see what might work.

                                      RickW
                                      [www.smustard.com](http://www.smustard.com)

                                      1 Reply Last reply Reply Quote 0
                                      • R Offline
                                        RickW
                                        last edited by

                                        @khai said:

                                        actually it wasn't an ad removal problem at all.. (btw the Firefox version is 3.5.2 the latest)

                                        it's Videolan, my video player. it's having a problem with the embedded video on that page.. working on it..

                                        Ah, sorry about that. I'll see about embedding a YouTube video instead.

                                        RickW
                                        [www.smustard.com](http://www.smustard.com)

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          RickW
                                          last edited by

                                          John,

                                          The 90-degree issue is (I think) an internal SU thing due to the desire of the camera to not look straight down - you can see this when manually orbiting, and I suspect it carries over to dynamically moving the camera in Ruby. Either that, or it's a by-product of my (necessary) assumption that when looking straight down, the positive y-axis is zero roll. Not sure.

                                          As for the second issue you described in your model, I don't quite understand the issue - I didn't have any problem getting 90 degrees for the magenta(?) and green boxes. I'll try to get with you later to get more input.

                                          RickW
                                          [www.smustard.com](http://www.smustard.com)

                                          1 Reply Last reply Reply Quote 0
                                          • PixeroP Offline
                                            Pixero
                                            last edited by

                                            I cant get it to work.
                                            I get a window with three sliders but nothing happens when I drag them.
                                            Should there be more things visible in that window?
                                            If not I suggest you make it a lot smaller.
                                            It takes up a great deal of space IMHO.

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

                                            Advertisement