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

[Plugin] Camera Settings Export/Import

Scheduled Pinned Locked Moved Plugins
33 Posts 21 Posters 48.3k 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.
  • G Offline
    grasset17
    last edited by 8 Jan 2013, 16:07

    Merci beaucoup pour ce script qui fonctionne à merveille

    1 Reply Last reply Reply Quote 0
    • Q Offline
      qazokm
      last edited by 17 Mar 2013, 07:34

      Finally I found it, thanks

      1 Reply Last reply Reply Quote 0
      • L Offline
        lsztuka
        last edited by 15 May 2013, 09:02

        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
        • O Offline
          Oxer
          last edited by 16 May 2013, 03:25

          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/(http://www.oxervision.blogspot.com/)]

          1 Reply Last reply Reply Quote 0
          • H Offline
            halroach
            last edited by 22 May 2014, 12:36

            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
            • O Offline
              Oxer
              last edited by 11 Sept 2014, 01:16

              Hi again,
              I have installed the plugin in SU2014 on Mac OS X 10.9.4 but it doesn't work, it appears this message in Ruby Console when I try to import the cameras exported:

              Error: #<ArgumentError: Cannot create unit vector from zero length vector> /Users/Oxer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/camera_export_import.rb:240:ininitialize'
              /Users/Oxer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/camera_export_import.rb:240:in new' /Users/Oxer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/camera_export_import.rb:240:in block in run_import_camera'
              /Users/Oxer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/camera_export_import.rb:184:in each' /Users/Oxer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/camera_export_import.rb:184:in run_import_camera'
              /Users/Oxer/Library/Application Support/SketchUp 2014/SketchUp/Plugins/camera_export_import.rb:45:in block in <module:NN_Camera_Export_Import>' -e:1:in call'`

              The plugin works fine on SU2013, the file exported with SU2013 it's opened perfectly with SU2014.
              If this can help you, here the content of the SU_export_camera.txt files for SU2013 & SU2014, the cameras exported are the same for SU2013 & SU2014:

              SU_export_camera.txt file generated by SU2013

              Escena 1xxxxx114.776582759505xxxxx-470.759756047837xxxxx255.52670318483xxxxx-4.73467719892792xxxxx394.780293580179xxxxx-156.71068082903xxxxx-0.0583630895867597xxxxx0.42268478698106xxxxx0.904395555400768xxxxx1xxxxx35.0 Escena 2xxxxx284.515642984778xxxxx24.4839257174341xxxxx100.474199327822xxxxx-646.416139390573xxxxx156.269579438326xxxxx-121.743571298921xxxxx-0.227740570706893xxxxx0.0322396770177899xxxxx0.973187975511354xxxxx1xxxxx35.0

              SU_export_camera.txt file generated by SU2014

              ["Escena 1", "xxxxx", 114.776582759505, "xxxxx", -470.759756047837, "xxxxx", 255.52670318483, "xxxxx", -4.73467719892792, "xxxxx", 394.780293580179, "xxxxx", -156.71068082903, "xxxxx", -0.05836308958675972, "xxxxx", 0.4226847869810601, "xxxxx", 0.9043955554007682, "xxxxx", 1, "xxxxx", 35.0] ["Escena 2", "xxxxx", 284.515642984778, "xxxxx", 24.4839257174341, "xxxxx", 100.474199327822, "xxxxx", -646.416139390573, "xxxxx", 156.269579438326, "xxxxx", -121.743571298921, "xxxxx", -0.22774057070689294, "xxxxx", 0.032239677017789896, "xxxxx", 0.9731879755113538, "xxxxx", 1, "xxxxx", 35.0]

              "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
              • T Offline
                TIG Moderator
                last edited by 11 Sept 2014, 13:38

                This is because the way the data is compiled from the array into a string in Ruby1.8 is different to Ruby2. It is currently incompatible with v2014 !
                Here is how to fix it...
                Open the file in Notepad++ on PC or TextWrangler on the MAC.
                Find line #152, which reads:
                myfile.write(new_array_entry.to_s)
                Change it to read

                if Sketchup.version.to_i < 14
                  myfile.write(new_array_entry.to_s)
                else ### >=v2014
                  new_array_entry.each{|e| myfile.write(e) }
                end
                

                Save it and restart SketchUp.
                Now it should write the same format of data-file in all versions of SketchUp.
                The import [reading] part should remain unaffected across versions...

                TIG

                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 11 Sept 2014, 14:17

                  Because the author allows future changes by others, I have made v1.2 compatible with all SketchUp versions - available here http://sketchucation.com/pluginstore?pln=camera_export_import

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • O Offline
                    Oxer
                    last edited by 11 Sept 2014, 20:32

                    Thanks TIG!!

                    "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
                    • ToboboT Offline
                      Tobobo
                      last edited by 12 Sept 2014, 07:44

                      @tig said:

                      Because the author allows future changes by others, I have made v1.2 compatible with all SketchUp versions - available here http://sketchucation.com/pluginstore?pln=camera_export_import

                      Thank you TIG 👍

                      Toby

                      Philippians 4:13

                      I can do everything through him who gives me strength.

                      1 Reply Last reply Reply Quote 0
                      • F Offline
                        faust07
                        last edited by 16 Sept 2014, 11:31

                        Thank you careca and TIG - this plugin has saved my day!

                        1 Reply Last reply Reply Quote 0
                        • P Offline
                          poiseis
                          last edited by 31 May 2015, 13:32

                          2d perspective scenes are not exported properly, i hope you add that features soon.

                          1 Reply Last reply Reply Quote 0
                          • romboutR Offline
                            rombout
                            last edited by 24 Feb 2016, 06:32

                            Im looking for something to place a camera on exact axis. This way i can copy a camera from different modeling app. Its seems to be missing in some importers.

                            Does anyone know a trick or script?

                            1 Reply Last reply Reply Quote 0
                            • jujuJ Offline
                              juju
                              last edited by 24 Feb 2016, 08:53

                              @rombout said:

                              Im looking for something to place a camera on exact axis. This way i can copy a camera from different modeling app. Its seems to be missing in some importers.

                              Does anyone know a trick or script?

                              a quick search

                              • in the SketchUcation plugin store
                                http://sketchucation.com/pluginstore?listtype=1%26amp;author=0%26amp;category=0%26amp;search=camera%26amp;submit=%3F

                              • in the extension warehouse
                                http://extensions.sketchup.com/en/search/site/camera

                              Save the Earth, it's the only planet with chocolate.

                              1 Reply Last reply Reply Quote 0
                              • M Offline
                                mshdyh
                                last edited by 4 Jan 2017, 16:55

                                找了这个插件很久了,修改后可以使用,自己修改了下界面换成中文了。

                                1 Reply Last reply Reply Quote 0
                                • aomaoA Offline
                                  aomao
                                  last edited by 13 Feb 2018, 07:44

                                  @mshdyh said:

                                  找了这个插件很久了,修改后可以使用,自己修改了下界面换成中文了。

                                  你好 我发现1.2版的这个插件在处理两点透视(并且缩放平移过)的相机时会出现问题,直观来说就是无法正确的导出和导入,我看了下代码,不知是不是因为没有加入“CX,CY,比例”这三个参数(在普通机位,这三个数值分别为0,0,1),如果是的话,我想请教如何自行添加?如果不是话,那无法正确处理两点透视相机的问题在哪里?

                                  1 Reply Last reply Reply Quote 0
                                  • R Offline
                                    rcnorve
                                    last edited by 17 Apr 2024, 16:50

                                    Re: [Plugin] Camera Settings Export/Import

                                    Is there an update for this plugin that works in 2023?

                                    Thanks!!

                                    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