• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

[Plugin][Code]SKMtools,Material/ImageTools

Scheduled Pinned Locked Moved Plugins
176 Posts 36 Posters 264.1k Views
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.
  • T Online
    TIG Moderator
    last edited by 11 Dec 2010, 23:49

    @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
    • T Online
      TIG Moderator
      last edited by 11 Dec 2010, 23:51

      @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 12 Dec 2010, 00:19

        @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
        • B Offline
          Box
          last edited by 12 Dec 2010, 11:41

          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
          • T Online
            TIG Moderator
            last edited by 12 Dec 2010, 12:39

            @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
            • T Online
              TIG Moderator
              last edited by 12 Dec 2010, 12:47

              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
              • B Offline
                Box
                last edited by 12 Dec 2010, 13:23

                Perfect Tig, thanks, works now.

                1 Reply Last reply Reply Quote 0
                • T Online
                  TIG Moderator
                  last edited by 12 Dec 2010, 23:42

                  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
                  • T Online
                    TIG Moderator
                    last edited by 13 Dec 2010, 16:06

                    Here's another update http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
                    It contains a new tool ' gifxtractor' which lets you quickly extract PNG files for each frame in a given animated GIF file...

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • K Offline
                      ken
                      last edited by 13 Dec 2010, 18:25

                      TIG

                      It appears that the version, ....3a.zip is missing two images for the last two menu items, make unique and clone.

                      Thanks for all of your work.

                      Ken

                      Fight like your the third monkey on Noah's Ark gangway.

                      1 Reply Last reply Reply Quote 0
                      • T Online
                        TIG Moderator
                        last edited by 13 Dec 2010, 19:03

                        Ken, the two new ' ImageAnimator' tools ' Make_Unique' and ' Clone' should only have appeared in the View > ImageAnimator sub-menu as they are not that often used - the toolbar buttons were a result of a typo in my code 😳
                        This is the updated version ..13b...http://forums.sketchucation.com/viewtopic.php?p=293677#p293677

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • X Offline
                          xrok1
                          last edited by 14 Dec 2010, 03:05

                          WOW! 😲
                          good work 👍

                          “There are three classes of people: those who see. Those who see when they are shown. Those who do not see.”

                          http://www.Twilightrender.com try it!

                          1 Reply Last reply Reply Quote 0
                          • E Offline
                            erikB
                            last edited by 16 Dec 2010, 13:51

                            tig,
                            fantastic ruby !
                            Only I can't seem to find the "make unique button"
                            In stead I see two times : set folder from selected images to Nil ?

                            greetings,

                            erikB

                            1 Reply Last reply Reply Quote 0
                            • T Online
                              TIG Moderator
                              last edited by 16 Dec 2010, 15:49

                              erikB

                              Another typo in my code 😒 the latest [corrected] version is here
                              http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
                              This version also includes 'ImageTrimmer' - a tool to trim around transparent areas in a .png Image and make a new Component - useful to trim around 'cardboard' cutout people from photos etc... see here for more details http://forums.sketchucation.com/viewtopic.php?p=294815#p294815

                              TIG

                              1 Reply Last reply Reply Quote 0
                              • T Online
                                TIG Moderator
                                last edited by 17 Dec 2010, 15:09

                                Here's an update http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
                                The 'ImageTrimmer' now has an option to simplify the outline and a new separate tool to do this post processing too.

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • T Online
                                  TIG Moderator
                                  last edited by 18 Dec 2010, 09:36

                                  IMPORTANT NOTICE!

                                  There has been a lone report of these tools not working - with a '.jar' file 'opening' rather than 'running'!
                                  Many of these tools use small Java '.jar' executable files that do specific tasks like zip/unzip and image manipulation.

                                  I have found that I can reproduce this weirdness IF I let a 'zip/unzip' application like AlZip or WinRar 'poach' the '.jar' file-type as one that it will open. If so then when Ruby tries to 'open' a '.jar' file instead of it 'executing' in Java [like it should], it 'opens' in the decompression application...

                                  The solution = look at your WinRar etc settings and ensure '.jar' is NOT one of its file-types for opening... 😒

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • T Online
                                    TIG Moderator
                                    last edited by 20 Dec 2010, 21:31

                                    Here's an update http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
                                    A stupid typo preventing ImageTrimmer working properly on MAC is now corrected. 😒

                                    TIG

                                    1 Reply Last reply Reply Quote 0
                                    • T Online
                                      TIG Moderator
                                      last edited by 21 Dec 2010, 20:08

                                      Here's an update http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
                                      The time-out for ImageTrimmer file creation extended to 60secs to cater for larger files being slow to complete...

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • T Online
                                        TIG Moderator
                                        last edited by 22 Dec 2010, 12:25

                                        Here's an update http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
                                        Some scripts have been recast to address glitches with MAC file paths.
                                        Everyone should update to these new versions...

                                        TIG

                                        1 Reply Last reply Reply Quote 0
                                        • T Online
                                          TIG Moderator
                                          last edited by 22 Dec 2010, 20:52

                                          Here's another update http://forums.sketchucation.com/viewtopic.php?p=293677#p293677
                                          ImageTrimmer time-out for larger .dat files extended, EdgeDetector.jar improved...

                                          TIG

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

                                          Advertisement