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

    [Plugin][Code]SKMtools,Material/ImageTools

    Scheduled Pinned Locked Moved Plugins
    176 Posts 36 Posters 264.3k Views 36 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.
    • PixeroP Offline
      Pixero
      last edited by

      Wow. Thanks! πŸ‘

      1 Reply Last reply Reply Quote 0
      • ARTchiA Offline
        ARTchi
        last edited by

        In what fun? User Sahi, one week ago has made plug-in JpgGif with similar functions!
        http://forums.sketchucation.com/viewtopic.php?f=323&t=33054
        What for to do a similar plug-in? Or in what of advantages of your plug-in?

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

          @bob james said:

          Really neat effects, TIG, but I've loaded the SKM files into the plugins folder and I don't get any toolbar.

          ONLY the SKMtools_loader.rb*** goes into Plugings!
          ALL other files stay inside their sub-folders [SKMtools etc] inside Plugins...
          You need to activate the toolbar from View > Toolbars too...

          ***NOTE: in more recent version this is named "SKMtools.rb"

          TIG

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

            @artchi said:

            In what fun? User Sahi, one week ago has made plug-in JpgGif with similar functions!
            http://forums.sketchucation.com/viewtopic.php?f=323&t=33054
            What for to do a similar plug-in? Or in what of advantages of your plug-in?

            I am well aware of Sahi's tool.
            I haven't tried it, but I suspect that it'll be quite similar...
            Now for my tool's advantages ?
            The main one is it's written by me ?? πŸ’š
            It's 'donation-ware' - i.e. you probably won't pay anything for it!! πŸ˜•
            It's part of a greater set of new API class/methods to expand SKM/Material/Image tools and their use in scripts and web-dialogs... πŸ€“
            It was work in progress when Sahi published and I won't waste the coding time even if it might perhaps tread on his toes...
            😎

            TIG

            1 Reply Last reply Reply Quote 0
            • BoxB Offline
              Box
              last edited by

              Tig I get the same problem as Bob James.

              I've extracted all to the plugins folder, but nothing to be seen anywhere.
              Looked for it in View toolbars, windows preferences, doesn't seem to load.

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

                @box said:

                Tig I get the same problem as Bob James.

                I've extracted all to the plugins folder, but nothing to be seen anywhere.
                Looked for it in View toolbars, windows preferences, doesn't seem to load.

                Do you have menu in View ?Capture.PNG

                TIG

                1 Reply Last reply Reply Quote 0
                • Bob JamesB Offline
                  Bob James
                  last edited by

                  Sorry, TIG: Operator error - I was looking for "SKM...." in the View/Toolbars list not "ImageAnimator" 😳

                  i7-4930K 3.4Ghz, 2x GTX780 6GB, 32GB DDR3-1600 ECC, OCZ Vertex 4 500GB, WD Black 3TB, 32TB NAS, 4x 27" Monitors, SpaceMouse Pro, X-keys XK-60

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

                    @bob james said:

                    Sorry, TIG: Operator error - I was looking for "SKM...." in the View/Toolbars list not "ImageAnimator" 😳

                    PEBCAC - Problem Exists Between the Computer and Chair [i.e. YOU πŸ˜‰ ]
                    SO is it working now ?
                    Do you get the Menu entry too - see my recent post about this...
                    The Menu AND the Toolbar are both named ' ImageAnimator'

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • BoxB Offline
                      Box
                      last edited by

                      I don't think its a PEBCAC for me, I've searched everywhere, not a sausage.

                      I've restarted, reextracted, copy and pasted instead of extract all, nothing nadda zilch πŸ’š


                      Animation.jpg

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

                        Box
                        You should have only one new file in the ../Plugins/ folder - SKMtools_loader.rb***
                        Inside the Plugins folder you should have a new sub-folder called SKMtools.
                        In that folder ../Plugins/SKMtools/ you should have the following files:Capture.PNGIn these sub-sub-folders you have...Capture1.PNG
                        andCapture2.PNGand an empty ' Temp' folder.
                        Make sure you don't have any of the files in the wrong places from an earlier mis-install - it will screw up the correctly placed ones! ...
                        There is an ImageAnimator sub-menu under the main View menu AND also a new toolbar under View > Toolbars - which is also called ImageAnimator........
                        ***NOTE: in more recent version it is named SKMtools.rb NOT '_loader.rb'

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • BoxB Offline
                          Box
                          last edited by

                          It's odd Tig, it's all as you say it should be, but still nothing showing up.
                          It's late for me now so I'll have another try with it tomorrow.

                          Thanks

                          1 Reply Last reply Reply Quote 0
                          • S Offline
                            sahi
                            last edited by

                            @bob james said:

                            Really neat effects, TIG, but I've loaded the SKM files into the plugins folder and I don't get any toolbar.

                            Hi!
                            I have a similar problem arose.

                            I made it for myself decided thus

                            file SKMtools_loader.rb replaced path ="SKMtools" ΠΎΠ½
                            path = File.dirname(FILE) + "/SKMtools"

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

                              @sahi said:

                              @bob james said:

                              Really neat effects, TIG, but I've loaded the SKM files into the plugins folder and I don't get any toolbar.

                              Hi!
                              I have a similar problem arose.
                              I made it for myself decided thus
                              file SKMtools_loader.rb replaced path ="SKMtools" ΠΎΠ½
                              path = File.dirname(FILE) + "/SKMtools"

                              Thanks for the advice BUT
                              path="SKMtools" should work as load "SKMtools/xxx.rb" [when path and the filename are 'added together'] will start in any of the $LOAD_PATH locations which will include ../Plugins/ where SKMtools_loader.rb resides and then SKMtools is that directory up and it looks for the 'file' - I use it all the time to load scripts from subfolders without problem ?
                              Why do you think it isn't working for just some users ??
                              It works fine for me... πŸ˜•

                              TIG

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

                                @tig said:

                                @sahi said:

                                @bob james said:

                                Really neat effects, TIG, but I've loaded the SKM files into the plugins folder and I don't get any toolbar.

                                Hi!
                                I have a similar problem arose.
                                I made it for myself decided thus
                                file SKMtools_loader.rb replaced path ="SKMtools" ΠΎΠ½
                                path = File.dirname(FILE) + "/SKMtools"

                                Thanks for the advice BUT...........
                                path="SKMtools" should work as load "SKMtools/xxx.rb" [when path and the filename are 'added together'] will start in any of the $LOAD_PATH locations which will include ../Plugins/ where SKMtools_loader.rb resides and then SKMtools is that directory up and it looks for the 'file' - I use it all the time to load scripts from subfolders without problem ?
                                Your example will work - although I'd use path=File.join(File.dirname(__FILE__),"SKMtools") BUT the other method will work anyway 😞
                                Why do you think it isn't working for just some users ??
                                It works fine for me... πŸ˜•

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • S Offline
                                  sahi
                                  last edited by

                                  @tig said:

                                  Why do you think it isn't working for just some users ??
                                  It works fine for me... πŸ˜•

                                  I have it too did not work, until I made changes after that he earned.

                                  I have a folder "Plugins" is a standard set of plug-ins, not something extra.

                                  1 Reply Last reply Reply Quote 0
                                  • BoxB Offline
                                    Box
                                    last edited by

                                    I've tried it again on a different computer and same result. Nothing.

                                    Just to be sure, I downloaded the .zip, double click, select extract all, browse to Plugin folder, extract all. Should I be doing anything else, or perhaps there is another file from one of your other tools that I am missing.

                                    Other thoughts would be,

                                    I may have a conflicting plugin

                                    or

                                    I have sketchup installed in the default location, ie: in program files.

                                    I just installed your other plugin, Manifold in exactly the same way and it works perfectly.

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

                                      @sahi said:

                                      @tig said:

                                      Why do you think it isn't working for just some users ??
                                      It works fine for me... πŸ˜•

                                      I have it too did not work, until I made changes after that he earned.

                                      I have a folder "Plugins" is a standard set of plug-ins, not something extra.

                                      Sahi / Box

                                      I think I have the cause...
                                      If there's an obscure script [that I don't know of] that loads before SKMtools_loader.rb and it has code outside of its methods that is permanently changing the current directory [ill-advisedly] then my method will fail when using ' Dir' [but not ' load']. Sahi's method [or something like it] will work as it uses an 'absolute' and not 'relative' path. To check what the current directory is after startup type Dir.pwd in the Ruby Console - it should return the ../Plugins/ folder where SKMtools_loader.rb resides - if not then we know something is changing the pwd.

                                      There's now an updated SKMtools_loader.rb file - please replace the one in the ../Plugins/ folder with this one, and retry. I have included this file in an update of the zipped set in the first post too...
                                      NOTE: more recent versions do NOT need/use SKMtools_loader.rb.
                                      Only install the files from the RBZ set...

                                      TIG

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

                                        http://forums.sketchucation.com/viewtopic.php?p=293677#p293677 Here is an updated version with the 'loader' script adjusted to avoid earlier loading scripts messing up the 'dir/load' paths...

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • BoxB Offline
                                          Box
                                          last edited by

                                          Perfect Tig, thanks, works now.

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

                                            Here's an update http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
                                            It includes new methods:-

                                            Material.save_texture_and_thumbnail(folder)

                                            • saves Material's texture [if any] and its thumbnail [png] into a subfolder named after the material in 'folder' - returns that subfolder path or nil.

                                            SKM.save_texture_and_thumbnail(path_skm, folder)

                                            • saves SKM's texture [if any] and its thumbnail [png] to a subfolder named after the SKM in 'folder' - returns taht subfolder path or nil

                                            SKM.extract(path_skm, 'folder')

                                            • extracts all of the SKM's data into a 'hash': if the optional 'folder' is given the files from the SKM are extracted into a subfolder named after the SKM in 'folder'. All of the available SKM data is accessible from the 'hash', if 'folder' is given then the paths to the texture/thumbnail etc are accessible...

                                            ImageAnimator

                                            • new menu items 'Make_Unique' and 'Clone'.

                                            See individual tools threads for more details...

                                            TIG

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

                                            Advertisement