sketchucation logo sketchucation
    • 登入
    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!
    ⚠️ Important | Libfredo 15.6b introduces important bugfixes for Fredo's Extensions Update

    [Plugin] Snapshot – (1.0.1) — updated 09.10.2012

    已排程 已置頂 已鎖定 已移動 Plugins
    74 貼文 12 Posters 56.2k 瀏覽 12 Watching
    正在載入更多貼文
    • 從舊到新
    • 從新到舊
    • 最多點贊
    回覆
    • 在新貼文中回覆
    登入後回覆
    此主題已被刪除。只有擁有主題管理權限的使用者可以查看。
    • G 離線
      glro
      最後由 編輯

      Here is what i get when i type 'load "ae_Snapshot/Snapshot.rb" 'in the ruby console

      load "ae_Snapshot/Snapshot.rb"
      Error: #<ArgumentError: C:/Archivos de programa/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:309:in `initialize': wrong number of arguments (0 for 1)>

      1 條回覆 最後回覆 回覆 引用 0
      • A 離線
        Aerilius
        最後由 編輯

        Thanks!!!
        I found and fixed the issues!

        1 條回覆 最後回覆 回覆 引用 0
        • G 離線
          glro
          最後由 編輯

          sorry to write that i still have an error message


          string to integer error

          1 條回覆 最後回覆 回覆 引用 0
          • A 離線
            Aerilius
            最後由 編輯

            I'm not sure if I found it (line 187?). Can you post the error with line number that the Ruby Console gives?
            load "ae_Snapshot/Snapshot.rb"

            1 條回覆 最後回覆 回覆 引用 0
            • G 離線
              glro
              最後由 編輯

              Here is the error message:

              "Error: #<TypeError: C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:319:in []': can't convert String into Integer> C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:319 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:319 C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:318:in each'
              C:/Program Files (x86)/Google/Google SketchUp 8/Plugins/ae_Snapshot/Snapshot.rb:318
              (eval):155:in `load'
              (eval):155"

              line 319

              1 條回覆 最後回覆 回覆 引用 0
              • A 離線
                Aerilius
                最後由 編輯

                (I won't be back until tomorrow.)
                I just made a quick change, can you test it?


                Put it in .../Plugins/ae_Snapshot/Snapshot.rb

                1 條回覆 最後回覆 回覆 引用 0
                • G 離線
                  glro
                  最後由 編輯

                  i replaced the previous file in the rbz, by this new one, and yes, now it works perfectly

                  a nice tool to keep tracks, and retrieve a lost model

                  thank you

                  1 條回覆 最後回覆 回覆 引用 0
                  • D 離線
                    driven
                    最後由 編輯

                    been playing around with style
                    no need to open, but do the icons download to other computers
                    don't stay stuck when on the file posting, but I want to test if they download
                    This is the Standard horrible mac one
                    it's icon doesn't upload either??

                    john

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

                    1 條回覆 最後回覆 回覆 引用 0
                    • simon le bonS 離線
                      simon le bon
                      最後由 編輯

                      This last release is impressively highly configurable - And then need to be tamed a bit

                      The fact is that I'm not easy with the {nr} parameter and the "change digit by" line bellow. 😳

                      I'm not able to make the incrementation work.

                      Whatever I test, I obtain something like this: xyz_00**_1-0-0**.png ❓

                      Need some further explanation 💭 😒

                      simon

                      1 條回覆 最後回覆 回覆 引用 0
                      • A 離線
                        Aerilius
                        最後由 編輯

                        @unknownuser said:

                        Whatever I test, I obtain something like this: xyz_00_1-0-0.png

                        That depends on what you want to get (I don't know).

                        It's the printf format (I didn't need to implement it, otherwise it would be more complicated). You can write any separating characters and %d is replaced by the number.
                        It should work that for a major version 1, minor version 3, you get
                        [pre:1z9sy1o8]%d → file_1.skp
                        %d.%d (or %1d.%1d) → file_1.3.skp (number between %d sets minimum width)
                        %d.%2d → file_1. 3.skp (minimum width is filled up by spaces)
                        %d.%02d → file_1.03.skp (with additional 0, it is filled by 0)
                        %d-%02d → file_1-03.skp
                        %d_%02d → file_1_03.skp
                        %02d.%02d → file_01.03.skp
                        %02d.%03d → file_01.003.skp[/pre:1z9sy1o8]

                        1 條回覆 最後回覆 回覆 引用 0
                        • simon le bonS 離線
                          simon le bon
                          最後由 編輯

                          Ok, thank you! I understand very better now.

                          But Hum! incrementation still dont work for me. Is it something I'm doing wrong or is it something that don't work with the script ?

                          http://i274.photobucket.com/albums/jj245/Spendauballet/SketchUp/Aerilius_Snapshot_005.jpg

                          By pressing my +1 button set as above

                          a xyz.skp Snapshot should be saved as

                          xyz_01_01.png (due to %02d_%02d)

                          and due to "change the 2 digit by 1", I understand that the following +1 button depressed should increment the files by the second digit:
                          xyz_01_02.png
                          xyz_01_03.png...

                          But my file is saved as
                          xyz_01_00.png and instead of increment it , overwrites on itself.

                          Still need help I guess 😳

                          Simon.

                          1 條回覆 最後回覆 回覆 引用 0
                          • A 離線
                            Aerilius
                            最後由 編輯

                            fixed!

                            1 條回覆 最後回覆 回覆 引用 0
                            • simon le bonS 離線
                              simon le bon
                              最後由 編輯

                              @aerilius said:

                              fixed!

                              Hi Ae,
                              it is not necessarily very comfortable to be tester 😉 😕

                              It seems that increment still doesn't work...

                              (that decrements from 1 to 0 and then overwrites)

                              Cheers,
                              Simon.

                              PS:It should certainly be very useful to add the usages of {nr} parameter to the first post

                              1 條回覆 最後回覆 回覆 引用 0
                              • simon le bonS 離線
                                simon le bon
                                最後由 編輯

                                ~~ content outdated --> erased ~~~

                                1 條回覆 最後回覆 回覆 引用 0
                                • G 離線
                                  glro
                                  最後由 編輯

                                  one step further...

                                  would it be possible to:

                                  scan a folder
                                  open automatically all skp files in the folder
                                  produce the thumbnail and the file shortcut
                                  store them in the specified folder?

                                  Because the plugin is great to keep track of the future skp files, and it would be nice to collect the informations also for the already existing skp files...

                                  1 條回覆 最後回覆 回覆 引用 0
                                  • D 離線
                                    driven
                                    最後由 編輯

                                    Hi Giro,
                                    I just popped in to post another idea and thought I'd use your query to clarify some thoughts, hope you don't mind.
                                    @glro said:

                                    one step further...
                                    would it be possible to:

                                    scan a folder
                                    open automatically all skp files in the folder

                                    'SketchUp Menu' >> File >> Open >> Browse to Folder >> Select All .skp files >> Click 'Select'
                                    on a mac all will open in SketchUp, does it not on a PC?

                                    @unknownuser said:

                                    produce the thumbnail and the file shortcut

                                    does it not do this, now? on the mac the 'shortcut's' not needed if you 'apply' the new icon image to the .skp file

                                    @unknownuser said:

                                    store them in the specified folder?

                                    This is already a preference, but once they're on the .skp storing a copy [as a material, maybe?] in the model would be more useful [for transferring to another computer or sharing]

                                    @unknownuser said:

                                    Because the plugin is great to keep track of the future skp files, and it would be nice to collect the informations also for the already existing skp files...

                                    You can already use this with old or new files, the problem with batch processing [fully auto] is getting bad views of some models that haven't been optimally positioned when last saved. You could code in a 'Perspective >> Zoom Extents' type event, but what if its a part of a huge scheme or a 2D floorPlan etc...

                                    john

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

                                    1 條回覆 最後回覆 回覆 引用 0
                                    • D 離線
                                      driven
                                      最後由 編輯

                                      a hidden editor pops down on hover
                                      allowing you to add all sorts of detail to the icon
                                      Everything is made inside a SU WebDialog [could just be an extra option in this plugin]
                                      I have a hard coded 'proof of principle' plugin that works on a mac and possibly a PC...
                                      You can add your own borders [made in SU]
                                      add logos
                                      add text
                                      can anyone else see any advantages to this concept or should I just finish it for myself and mac only.?

                                      john

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

                                      1 條回覆 最後回覆 回覆 引用 0
                                      • G 離線
                                        glro
                                        最後由 編輯

                                        @driven said:

                                        Hi Giro,
                                        I just popped in to post another idea and thought I'd use your query to clarify some thoughts, hope you don't mind.
                                        @glro said:

                                        one step further...
                                        would it be possible to:

                                        scan a folder
                                        open automatically all skp files in the folder

                                        'SketchUp Menu' >> File >> Open >> Browse to Folder >> Select All .skp files >> Click 'Select'

                                        on my computer this doesn't open all skp files automatically...
                                        i have to open each file manually one by one

                                        but you are right about the snapshot: to make sure it is taken with the model in the right position, it would be better to have a look on it

                                        maybe i can find the code to open automatically all files in a folder, one after the other, and set the zoom coefficient so that the model is visible completely

                                        the only thing to do manually would be to gather all the skp files in a folder and then launch the plugin

                                        i'll work on it soon

                                        1 條回覆 最後回覆 回覆 引用 0
                                        • G 離線
                                          glro
                                          最後由 編輯

                                          @driven said:

                                          ...
                                          can anyone else see any advantages to this concept or should I just finish it for myself and mac only.?

                                          this plugin could be a useful addition to ae snapshot, because, as i understand it, it would make possible to add information on the thumbnail

                                          when trying to retrieve a model, you would have the image, and also text, to make sure it is the model you are looking for

                                          1 條回覆 最後回覆 回覆 引用 0
                                          • simon le bonS 離線
                                            simon le bon
                                            最後由 編輯

                                            Hey! very interesting perspectives engaged by Giro and Driven 👍
                                            +1 for Driven Icon Editor!

                                            As the increment feature still don't work for me, I have tried to delete the plugin and to reinstall it. I have been surprised by the fact that my previous settings are reloaded.

                                            That means that they are stored somewhere else, probably in a ini textfile (that I have not found).
                                            Can you please Aerilius elucidate this point ? May be from this comes my problem ?

                                            *s

                                            1 條回覆 最後回覆 回覆 引用 0
                                            • 1
                                            • 2
                                            • 3
                                            • 4
                                            • 1 / 4
                                            • 第一個貼文
                                              最後的貼文
                                            Buy SketchPlus
                                            Buy SUbD
                                            Buy WrapR
                                            Buy eBook
                                            Buy Modelur
                                            Buy Vertex Tools
                                            Buy SketchCuisine
                                            Buy FormFonts

                                            Advertisement