sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    Mac User? | Join the Rayscaper Beta for Mac Learn More

    [Plugin] Camera Settings Export/Import

    Scheduled Pinned Locked Moved Plugins
    33 Posts 21 Posters 55.4k Views 20 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.
    • ToboboT
      Tobobo
      last edited by

      Thanks I'll let you know how i get on.

      Toby

      Philippians 4:13

      I can do everything through him who gives me strength.

      1 Reply Last reply
      Reply Quote 0
      • thomthomT
        thomthom
        last edited by

        Using the Advanced Camera extension in SU8 you can copy and paste camera objects around.

        View > Toolbars > Advanced Camera Tools

        Thomas Thomassen β€” SketchUp Monkey & Coding addict
        List of my plugins and link to the CookieWare fund

        1 Reply Last reply
        Reply Quote 0
        • thomthomT
          thomthom
          last edited by

          Btw - to avoid potential clashes with other plugins it's best to wrap everything into a module. otherwise you're adding methods inthe global namespace which affects all other plugins.
          See more notes about avoiding clashes with other plugins in this article: http://www.thomthom.net/thoughts/2012/01/golden-rules-of-sketchup-plugin-development/

          Thomas Thomassen β€” SketchUp Monkey & Coding addict
          List of my plugins and link to the CookieWare fund

          1 Reply Last reply
          Reply Quote 0
          • A
            Aerilius
            last edited by

            In addition to using a module, avoid any hard-coded file paths:
            %(#000000)[D:\SU_camera_export.txt] does most likely not exist.
            An alternative is to use environment variables ( %(#000000)[ENV["TEMP"]||(ENV["TMP"]]; %(#000000)[ENV["USERPROFILE"]||ENV["HOME"]]) to get a default path or to ask the user directly for a path.
            Example:
            mypath = [UI.savepanel](https://developers.google.com/sketchup/docs/ourdoc/ui#openpanel)("Save the camera settings") return if mypath.nil? mypath = [File.expand_path](http://www.ruby-doc.org/core-1.8.6/File.html#method-c-expand_path)(mypath) myfile = File.new(mypath, "w")

            ...

            UI.messagebox exported_cams.to_s + " Cameras were successfully exported to #{mypath}"

            Lastly file_loaded?("camera_export_import.rb") does not look up a file path but just an arbitrary string. That means after the file has loaded, we have to tell it SketchUp at the end of the file by using the same string: file_loaded("camera_export_import.rb")

            Otherwise it looks good for the first script! πŸ‘ We are always happy if people accomplish the first step . Once you're infected by Ruby, you can not get away from it.

            1 Reply Last reply
            Reply Quote 0
            • C
              careca
              last edited by

              hi Aerilius, thomthom, all.

              thanks for the feedback, i have updated the script accordingly and replaced it in my original post.

              regards,
              martin

              p.s. advanced camera tools would be great - maybe you can convince our sysadmins to install it for us πŸ˜‰

              1 Reply Last reply
              Reply Quote 0
              • thomthomT
                thomthom
                last edited by

                @careca said:

                p.s. advanced camera tools would be great - maybe you can convince our sysadmins to install it for us πŸ˜‰

                Should be bundled with SketchUp 8... Maybe you need to enable it under you list of Extensions?

                Anyway - looking forward to seeing more plugin creations! πŸ˜„

                Thomas Thomassen β€” SketchUp Monkey & Coding addict
                List of my plugins and link to the CookieWare fund

                1 Reply Last reply
                Reply Quote 0
                • R
                  rv1974
                  last edited by

                  Could you add support for hidden geometry, visible layers, style and shadows please?

                  1 Reply Last reply
                  Reply Quote 0
                  • J
                    jpalm32
                    last edited by

                    Is that a pro tool only? Not in my free 8.
                    Not in Ext. list either

                    1 Reply Last reply
                    Reply Quote 0
                    • thomthomT
                      thomthom
                      last edited by

                      @jpalm32 said:

                      Is that a pro tool only? Not in my free 8.
                      Not in Ext. list either

                      Ah! Now that's a good point! Could very well be a Pro feature. Didn't think of that. 😳

                      Thomas Thomassen β€” SketchUp Monkey & Coding addict
                      List of my plugins and link to the CookieWare fund

                      1 Reply Last reply
                      Reply Quote 0
                      • C
                        careca
                        last edited by

                        @unknownuser said:

                        Re: [Plugin] Camera Settings Export/Import

                        Postby rv1974 on Wed Aug 29, 2012 11:36 am
                        Could you add support for hidden geometry, visible layers, style and shadows please?

                        thanks for your comment - but to be honest, this was not the intention of this plugin, I only wanted to transfer camera settings between files. going into "hidden geometry, visible layers, style and shadows" will require to write a script for transferring complete scenes/pages, a completely different approach...

                        martin

                        1 Reply Last reply
                        Reply Quote 0
                        • C
                          careca
                          last edited by

                          "...with Maintenance 2 release, ACT installs with SketchUp 8.

                          1 Reply Last reply
                          Reply Quote 0
                          • J
                            jpalm32
                            last edited by

                            @careca said:

                            "...with Maintenance 2 release, ACT installs with SketchUp 8.

                            Not free version! Unless I'm getting a missing module.

                            1 Reply Last reply
                            Reply Quote 0
                            • M
                              mirale999
                              last edited by

                              Great plugin~ I was worrying how to compare two designs the very last minute~

                              paranoia is a higher form of awareness...

                              1 Reply Last reply
                              Reply Quote 0
                              • F
                                floffy1983
                                last edited by

                                Works exactly as advertised,thank you.

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

                                  ACT is a Pro-only add-on...
                                  Just like LayOut, Solid tools, some Exporters/Importers etc...

                                  TIG

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • G
                                    grasset17
                                    last edited by

                                    Merci beaucoup pour ce script qui fonctionne Γ  merveille

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • Q
                                      qazokm
                                      last edited by

                                      Finally I found it, thanks

                                      1 Reply Last reply
                                      Reply Quote 0
                                      • lsztukaL
                                        lsztuka
                                        last edited by

                                        I have the same problem with going back to older designs often. The script does what it should in a fast and simple way. It helped me a lot! Thanks!

                                        1 Reply Last reply
                                        Reply Quote 0
                                        • OxerO
                                          Oxer
                                          last edited by

                                          Thanks you very much!! πŸ‘
                                          Very useful for a project that I'm working on.

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

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • halroachH
                                            halroach
                                            last edited by

                                            Would it be possible to export/import also shadow settings and layer visibility along with the camera scenes?
                                            Basically exporting/importing whole scenes, and not just the cameras?

                                            FlexTools - Super Quick Windows, Doors, Slats...

                                            1 Reply Last reply
                                            Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better πŸ’—

                                            Register Login
                                            • 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