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

      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
            • Chris FullmerC Offline
              Chris Fullmer
              last edited by

              Ahh yes, agreed. The window initialy starts quite large for just the three sliders.

              Jan, is it giving errors to the webconsole? I had a problem described earlier in the thread where the atan function needed to be specified as Math::atan on line 153. Did you already fix that one Rick?

              Chris

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

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

                Ok. I added the Math::atan and now it works. Still the window is huge! 😲
                I really like the way it works in realtime but please make the window much more compact.
                It would also be nice with a small reset button for each slider.

                Also would it be possible to have these as well:
                Truck (left/right)
                Pedestal (up/down)
                Dolly (in/out)

                For these maybe some logarithmic/non linear curve for the slider so when sliding a little it would be small values and when sliding towards the extremes it would be larger/faster movement.
                Just a thought.

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

                  Interesting, on my work computer, the window was HUGE also. But on my home computer, it was tiny tiny. Resized as absolutely small as possible, I almost didn't see it because it just shows the red x, minimize and maximize buttons.

                  You can manually resize it though, which works fine. And for me it remembers its size and location between SU sessions. So try to resize it and see if SU rememeber's its size.

                  Chris

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

                  1 Reply Last reply Reply Quote 0
                  • JClementsJ Offline
                    JClements
                    last edited by

                    Nice job Rick!

                    I discovered a few things, not sure if they are bugs or not. See attached file.

                    Could you have vertical lines (or tick marks) at degree intervals (ie., 45, 90, 130, 180, -45, -90, etc.) in the dialog background so you can align the sliders to them (or perhaps snap to them?)?

                    _________________________________________________________________

                    Could you have a Camera Dialog devoted solely for "Dolley" movements (moving camera along a striaght path) which would perform the following:
                    1- Move along each of the colored axis (including user defined axis if possible) similar to the script you had for doing tutorials that jumb to "Iso snap-shots" from Scene to Scene.

                    2- Move left to right [Truck] and top [Pedestol]to bottom across the screen.

                    The user could input distance values for the DOLLEYs.

                    [UPDATE: Pardon me if I am not using the correct terminolgy here; it seems like there are mixed terminologies between applications (SU Pan tool does what I'm describing here, and SU's Look Around is similar to the PAN in your dialog). ❓]


                    Camera Positions Test.skp

                    John | Illustrator | Beaverton, Oregon

                    1 Reply Last reply Reply Quote 0
                    • JClementsJ Offline
                      JClements
                      last edited by

                      @unknownuser said:

                      For these maybe some logarithmic/non linear curve for the slider so when sliding a little it would be small values and when sliding towards the extremes it would be larger/faster movement.
                      Just a thought.

                      Good suggestion, Pixero.
                      Moving sliders with the mouse with any accuracy has often been an issue for me (ie., in Goggle Earth dialogs).

                      Perhaps Arrow keys could be active. Shift-Arrow = large movement, Ctrl-Arrow small movement, and what I have available in a 2D app for closeup work, Alt-Arrow = One Pixel no matter what the zoom level is. Getting a bit complicated isn't it. 😒

                      John | Illustrator | Beaverton, Oregon

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

                        @pixero said:

                        Ok. I added the Math::atan and now it works. Still the window is huge! 😲
                        I really like the way it works in realtime but please make the window much more compact.
                        It would also be nice with a small reset button for each slider.

                        Also would it be possible to have these as well:
                        Truck (left/right)
                        Pedestal (up/down)
                        Dolly (in/out)
                        .

                        I like the idea, and if is possible to store some values, is fantastic.

                        While the cat's away, the mice will play

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

                          Pixero: Not sure when you downloaded, but the current download has the corrected script (though I see you did get yours fixed).

                          John: Yes, I was using more "conventional" (as far as I could find) terminology for camera motion, rather than corresponding SU terminology. Also, I added text entry so you don't have to rely solely on slider accuracy - if you get it close and find the approximate angle, you can type the one you want.

                          All: I can add a preset size for the window to get it a bit smaller at startup, though as noted above, it can be resized and should remember that size in the future. Also, I'm noting the requests, and will see what can be added.

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

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

                            There are some challenges there with JavaScript/HTML in where I allow selection. I'll try to clean that up if possible.

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

                            1 Reply Last reply Reply Quote 0
                            • L Offline
                              lexmonteiro
                              last edited by

                              Thank you RickW!
                              Works fine here!

                              1 Reply Last reply Reply Quote 0
                              • JClementsJ Offline
                                JClements
                                last edited by

                                Thanks for the reply, Rick.

                                One thing. I did notice that you can NOT "swipe" the values in the dialog; you have to click and use the Delete Key or Backspace Key first, then type in new values.

                                Any chance to allow "swiping"?

                                John | Illustrator | Beaverton, Oregon

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

                                  It's Amazing!!!

                                  Link Preview Image
                                  Getting Started: Advanced Camera Tools

                                  GETTING STARTED: Advanced Camera Tools Table of Contents Introduction Downloading and installing the Advanced Camera Tools plugin Touring the Advanced Camera Tools user interface Creating a new camera Repositioning a camera in your model Looking through an existing camera Moving and aimin...

                                  favicon

                                  Google Docs (docs.google.com)


                                  ACT Figures 1_Camera-Moves_1.png_1.png_1.png

                                  While the cat's away, the mice will play

                                  1 Reply Last reply Reply Quote 0
                                  • B Offline
                                    bentleykfrog
                                    last edited by

                                    Nice Plugin Rick,

                                    Its really helpful when aligning the camera to a face in parallel projection and then rotating so the view is "upright". One problem I found is that in parallel projection the camera zooms out to the extents when adjusting the values. I had a look at the code and the simple solution is to store and maintain the camera.height value for non-perspective views, ie:

                                    maintaining:

                                    if (!perspective)
                                      @view.camera.height = @height
                                    end
                                    

                                    storing:

                                    @height = @camera.height if set == "all" || set == "camera"
                                    
                                    1 Reply Last reply Reply Quote 0
                                    • iichiversiiI Offline
                                      iichiversii
                                      last edited by

                                      Iv downloaded the files directly into plugins folder, but nothing appears in camera tab relating to the plugin, have i done something wrong, help please

                                      Bring on the Rain...

                                      1 Reply Last reply Reply Quote 0
                                      • iichiversiiI Offline
                                        iichiversii
                                        last edited by

                                        lol i got it, its in my plugin tab and not the camera tab

                                        Bring on the Rain...

                                        1 Reply Last reply Reply Quote 0
                                        • dereiD Offline
                                          derei
                                          last edited by

                                          It seems this plugin is no longer maintained... the thing is it worked ok for me until short time ago (couldn't tell when), since then it doesn't respond to commands. I don't know if there is a new/better one to do the same thing, but if it is, would be great to know about.

                                          Thank you very much.

                                          DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

                                          1 Reply Last reply Reply Quote 0
                                          • E Offline
                                            Einstein
                                            last edited by

                                            Seems like this plugin is no longer compatible with newer versions of SketchUp? It would be so cool to see it still working! In SU 2018 the toolbar is unresponsive too.
                                            For me it is one of the best plugins ever.

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

                                            Advertisement