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

    [Plugin] Snapshot – (1.0.1) — updated 09.10.2012

    Scheduled Pinned Locked Moved Plugins
    74 Posts 12 Posters 54.8k Views 12 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
      glro
      last edited by

      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 Reply Last reply Reply Quote 0
      • D Offline
        driven
        last edited by

        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 Reply Last reply Reply Quote 0
        • D Offline
          driven
          last edited by

          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 Reply Last reply Reply Quote 0
          • G Offline
            glro
            last edited by

            @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 Reply Last reply Reply Quote 0
            • G Offline
              glro
              last edited by

              @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 Reply Last reply Reply Quote 0
              • simon le bonS Offline
                simon le bon
                last edited by

                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 Reply Last reply Reply Quote 0
                • A Offline
                  Aerilius
                  last edited by

                  Hi,
                  writing from my phone from Boulder (wonderful sunny morning after the bad weather yesterday).

                  SketchUp gives us developera access to the default place where settings are stored, that is on Windows the registry. Open the start menu, "regedit" or run regedit.exe, then navigate to users, software, google, sketchup, plugins_ae

                  More details/news later

                  1 Reply Last reply Reply Quote 0
                  • simon le bonS Offline
                    simon le bon
                    last edited by

                    Thank you for the phone reply dear Ae.
                    I see what I ignored that many plugins are installed into the registry. What happens if I delete a key? nothing annoying I guess. If the plugin is still in use, the key must be reloaded, am I right?

                    Well forget this, I wish you a good trip in Boulder and a nice Basecamp 2012 with SCF friends 👍 👍 😄

                    simon

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      driven
                      last edited by

                      I've been having a look at 'less' cutting edge editor's to see if I can get enough usable feature on a PC version.

                      I'll PM the volunteers Giro + simon to test the basic concept using hard linked files with this template.

                      you should be able to edit any text and replace/remove the 'logo'
                      here's the teaser images...
                      using NicEdit for wysiwyg...should be more MISE friendly
                      I won't get it packaged till monday night UK time
                      john

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

                      1 Reply Last reply Reply Quote 0
                      • T Offline
                        tulacong
                        last edited by

                        oh lala zeeeee....thank you

                        1 Reply Last reply Reply Quote 0
                        • D Offline
                          driven
                          last edited by

                          Hi,

                          sorry for delays, there's a couple of 'PC' unknowns for me that this version may have avoided, but needs some testing.
                          I created 5 separate edit boxes that can be moved or resized or left blank[by deleting the content]

                          they can be 'rich text' edited by hovering at the top of page [after clicking into a text box].

                          if you can see the edit controls before you 'hover', I'll need to find another hide method, as they will be in the final image.... not good.

                          To Test:

                          1. unzip and place iConEdit folder in plugins
                          2. open the iConEdit/ruby's/create_demo_Icon.rb in a text editor, 1. add your path i.e.
                            iconSu.set_file("C:YOUR PATH/SketchUp/plugins/iConEdit/dragresize_iConEdit.html")
                          3. then copy paste it into SketchUp 'Ruby Console'[if that works on a PC?]1. or type in
                            load("C:YOUR PATH/SketchUp/plugins/iConEdit/ruby's/create_demo_Icon.rb") 1. and hit enter.

                          see what works... report back

                          latest, possibly 'PC' freindly version?
                          all the hardcode files/images are in their right folders, don't move [for now]

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

                          1 Reply Last reply Reply Quote 0
                          • G Offline
                            glro
                            last edited by

                            i tried

                            on a PC

                            following your indications, i managed to open a html

                            but then, i don't know how to proceed

                            the buttons in the html window are not active

                            i learnt a lot, though, trying to understand your code

                            thank you


                            iconeditor html.jpg

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              driven
                              last edited by

                              Hi giro,

                              good you got that far, shame it's not all working...

                              if you hover over or click on the "Placeholder text", do you get the resize handles[six green squares]?

                              if not there's a simpler version in the folder to test the other bits...

                              first test- can you open dragresize_iConEdit.html in a Browser [ IE, Chrome ] just to see if more works there.

                              second test- open demo_Icon.html [it's in the same folder] in your Browser and swap the name in the 'ruby to test in SU...

                              all the 'opacity' settings appear to not work, the toolbar hiding and the transparent SU logo.

                              in either the html if you 'comment out' the first background to look like this and reload you should see the fireman!!!

                              <body>
                              <!--  <div class="SketchUp"></div> -->
                              

                              if not, it may be because that files name is in 'Cyrillic', change it to fireman_3 on the file and in the html reference

                               background; url(ae_snapshot_images/ØÆ¶†‡≠Ω_3.png) no-repeat;
                              

                              to

                               background; url(ae_snapshot_images/fireman_3.png) no-repeat;
                              

                              I'll modify the settings to hide the 'nicEditor' on a button.
                              thanks for testing

                              john

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

                              1 Reply Last reply Reply Quote 0
                              • G Offline
                                glro
                                last edited by

                                @driven said:

                                Hi giro,

                                good you got that far, shame it's not all working...

                                if you hover over or click on the "Placeholder text", do you get the resize handles[six green squares]?

                                yes i can resize the handles, both in sketchup and in chrome

                                and i realize now that the menu in the html window is activ, but only once... the first time.

                                if i close it and open it again, it is not active anymore.

                                If i close sketchup and reload the plugin, it depends...

                                What would be the next step: "file://" ? what is expected by the program at this point?


                                iconeditor 01 html.jpg

                                1 Reply Last reply Reply Quote 0
                                • D Offline
                                  driven
                                  last edited by

                                  @glro said:

                                  and i realize now that the menu in the html window is activ, but only once... the first time.
                                  if i close it and open it again, it is not active anymore.

                                  the target for it appearing is very small [a 10px strip above the edit area... might be that]

                                  @unknownuser said:

                                  If i close sketchup and reload the plugin, it depends...

                                  shouldn't need to close SU, can you right click 'Reload' on the 'WebDialog' to reload the html only?

                                  @unknownuser said:

                                  What would be the next step: "file://" ? what is expected by the program at this point?

                                  you need to type or drag'n'drop an image path onto it.

                                  But that's just for extra 'logo type' images, the "firemen image" should be there already. try 'commenting' out the "Sketchup div" to see it.

                                  I'm just trying a simpler version to click a button for the menu...

                                  john
                                  [highlight=#80ff80:17yzd2rt]EDIT: I forgot to add this to the Sketchup css class in the html file,
                                  Add it and you should see two backgrounds

                                  
                                      zoom;1;
                                      filter; alpha(opacity=0);
                                  

                                  [/highlight:17yzd2rt]

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

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    driven
                                    last edited by

                                    I did an update of a few things that might help,,,

                                    add the html to the iConEdit folder in plugins and replace the nicEdit.js in the nicEdit folder.

                                    cheers
                                    john
                                    hover right hand corners and click SU button to show/hide toolbars

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

                                    1 Reply Last reply Reply Quote 0
                                    • G Offline
                                      glro
                                      last edited by

                                      i added the html to the iConEdit folder in plugins and replaced the nicEdit.js in the nicEdit folder.

                                      i didn't add the text in the css section, because i don't know where to add it exactly

                                      it doesn't help...

                                      i get 2 errors messages


                                      iconeditor 02 html.jpg


                                      iconeditor 03 html.jpg

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        driven
                                        last edited by

                                        @glro said:

                                        it doesn't help...

                                        oops,I missed a step,,, your ruby file needs to point to /iConEdit/test_3_iConEdit.html

                                        @unknownuser said:

                                        i get 2 errors messages

                                        the nicEdit.js error on line 169 character 2 is a tab and unchanged, I only tidied up the text sizes and the color picker, so revert to the other if you still have the error.
                                        john

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

                                        1 Reply Last reply Reply Quote 0
                                        • G Offline
                                          glro
                                          last edited by

                                          @driven said:

                                          @glro said:

                                          it doesn't help...

                                          oops,I missed a step,,, your ruby file needs to point to /iConEdit/test_3_iConEdit.html

                                          @unknownuser said:

                                          i get 2 errors messages

                                          the nicEdit.js error on line 169 character 2 is a tab and unchanged, I only tidied up the text sizes and the color picker, so revert to the other if you still have the error.
                                          john

                                          i came back to the previous version of nice edit.js and i changed the html file name

                                          now the html windows opens normally

                                          i realised that i have to click on "placeholder text" to make active the menu above; but still, i get an error message

                                          i click "si" and if i type the image address, it appears in the html windows, but it doesn't fit ...

                                          nothing is simple...


                                          iconeditor 04 html.jpg

                                          1 Reply Last reply Reply Quote 0
                                          • D Offline
                                            driven
                                            last edited by

                                            giro,
                                            type in C:/Archivos de programa/Google/ SketchUp 8/Plugins/iConEdit/logo_images/site_logo.png
                                            and see what happens...
                                            post a screenshot
                                            john

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

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

                                            Advertisement