• 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.
  • D Offline
    Dave R
    last edited by 21 Dec 2018, 22:02

    Yes it is compatible with SketchUp 2017.

    Etaoin Shrdlu

    %

    (THERE'S NO PLACE LIKE)

    G28 X0.0 Y0.0 Z0.0

    M30

    %

    1 Reply Last reply Reply Quote 0
    • R Offline
      RoRay
      last edited by 21 Dec 2018, 22:12

      @dave r said:

      Yes it is compatible with SketchUp 2017.

      thanks! 😄

      1 Reply Last reply Reply Quote 0
      • T Online
        TIG Moderator
        last edited by 24 Feb 2019, 19:35

        Updated for compatibility of the ImageTrimmer tool with newer SketchUp versions...
        https://sketchucation.com/pluginstore?pln=SKMtools

        TIG

        1 Reply Last reply Reply Quote 0
        • V Offline
          Vizan
          last edited by 2 Mar 2019, 17:14

          Your plugin issues this message SU2017:
          "Could not find the main class: EdgeDetector. Program will exit."

          1 Reply Last reply Reply Quote 0
          • T Online
            TIG Moderator
            last edited by 3 Mar 2019, 14:26

            @Vizan

            Please read this post about JAR files...
            https://sketchucation.com/forums/viewtopic.php?p=642919#p642919
            Once you are sure you have your compression tools and Java set up correctly, please retry it...

            If the issue continues... It might be because files are copied and written to a Temp folder, and it could be that you have not installed SketchUp properly, and thereby the Temp folder / files have incorrect permissions for reading/writing etc...

            To try an resolve this, you can do the following...
            Whilst logged into Windows as your usual Windows user, ensure SketchUp is closed.
            Find the SketchUp installer's exe file - it's usually in your Downloads folder.
            Select the exe file's icon.
            Right-click > context-menu > "Run as administrator"
            When prompted choose "Repair"
            When it completes retry SketchUp and see if it works...

            If it still fails, then it might be some latent permissions issues...
            Try the following...
            Close SketchUp.
            Find the folder: C:\Users\YOUR_USER_NAME\AppData\Local\Temp\SKMtools
            This is where the needed JAR files get created.
            Delete that folder.

            Note that folders in the AppData path are hidden by default.
            If you enter the path to the Temp folder in a Windows Explorer window it should open directly...
            Alternatively, copy/paste this code into the SketchUp Ruby Console and press <enter>, the Temp folder should open for you.
            UI.openURL("file:///#{Sketchup.temp_dir}")

            When SketchUp restarts and the tool is used, then it will remake that folder and also copy in new JAR files, which should now have proper permissions.

            TIG

            1 Reply Last reply Reply Quote 0
            • D Offline
              deaneau
              last edited by 12 Jun 2020, 08:46

              Hi TIG, the ImageTrimmer lets Sketchup crash . in both Versions SKPV17 Make and V19pro.
              what am I doing wrong?
              Java is installed and not linked with WinRAR etc.

              Thank you

              MADE, BORN AND LIVING IN BERLIN
              Big Thank You to all Programmers
              Some German words are so long that they have a perspective. M.Twain

              1 Reply Last reply Reply Quote 0
              • T Online
                TIG Moderator
                last edited by 12 Jun 2020, 13:26

                When you say 'crash' what happens - in detail...
                If you run it with the Ruby Console open - errors ?
                Are there any other errors ?
                Have you got a simple PNG to share to test ...

                TIG

                1 Reply Last reply Reply Quote 0
                • D Offline
                  deaneau
                  last edited by 12 Jun 2020, 16:59

                  Page Not Found

                  Web word processing, presentations and spreadsheets

                  favicon

                  (drive.google.com)

                  Page Not Found

                  Web word processing, presentations and spreadsheets

                  favicon

                  (drive.google.com)

                  here the png
                  https://drive.google.com/file/d/1Jhsdqlomjbc-PIK9RW5IQhjdU_NHQsbk/view?usp=sharing

                  MADE, BORN AND LIVING IN BERLIN
                  Big Thank You to all Programmers
                  Some German words are so long that they have a perspective. M.Twain

                  1 Reply Last reply Reply Quote 0
                  • T Online
                    TIG Moderator
                    last edited by 12 Jun 2020, 17:02

                    Why not upload the files directly into your post ?
                    I'll look at them anyway...

                    PS: the error msg only shows the end - the start is usually the most informative !

                    TIG

                    1 Reply Last reply Reply Quote 0
                    • D Offline
                      deaneau
                      last edited by 12 Jun 2020, 17:17

                      some forums dont provide this.

                      Page Not Found

                      Web word processing, presentations and spreadsheets

                      favicon

                      (drive.google.com)

                      Error: #<TypeError: reference to deleted ComponentDefinition>
                      C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Estimator/observers.rb:427:in entities' C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/Estimator/observers.rb:427:in onComponentAdded'
                      C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/SKMtools/image_class.rb:314:in explode' C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/SKMtools/image_class.rb:314:in use_as_material'
                      C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/SKMtools/image_class.rb:599:in save_imagefile' C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:191:in process_image'
                      C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:170:in initialize' C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:834:in new'
                      C:/Users/Dean/AppData/Roaming/SketchUp/SketchUp 2019/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:834:in `block in <top (required)>'

                      MADE, BORN AND LIVING IN BERLIN
                      Big Thank You to all Programmers
                      Some German words are so long that they have a perspective. M.Twain

                      1 Reply Last reply Reply Quote 0
                      • T Online
                        TIG Moderator
                        last edited by 12 Jun 2020, 17:25

                        I thought I've got your PNG to trim OK.
                        But SketchUp crashes silently after processing all of the pixels !
                        I'll re-look at your PNG...

                        It works with other PNG !
                        Just did this one...


                        Capture.PNG

                        TIG

                        1 Reply Last reply Reply Quote 0
                        • T Online
                          TIG Moderator
                          last edited by 12 Jun 2020, 17:41

                          If I flatten your PNG it works fine !
                          See attached...
                          So it must be some weird interaction of pixels ?


                          Capture.PNG

                          TIG

                          1 Reply Last reply Reply Quote 0
                          • T Online
                            TIG Moderator
                            last edited by 12 Jun 2020, 18:01

                            I thought it's because you have several pixels within the main image [eyes/glasses] that are transparent...
                            I filled them, flattened the PNG, then made the blue background the alpha-channel and it still crashes !

                            I'm still investigating...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • D Offline
                              deaneau
                              last edited by 12 Jun 2020, 19:29


                              https://s12.directupload.net/images/200612/y73e5rhy.png

                              without glasses this works hm, very mysterious

                              MADE, BORN AND LIVING IN BERLIN
                              Big Thank You to all Programmers
                              Some German words are so long that they have a perspective. M.Twain

                              1 Reply Last reply Reply Quote 0
                              • D Offline
                                deaneau
                                last edited by 12 Jun 2020, 19:34

                                TIG if you want you can try this here. I have only safe the svg to the PNG in different resolutions.

                                Link Preview Image
                                The Character Creator

                                Create realistic characters for fun or for use in creative projects. Choose from a series of options to build your full body avatar in vector graphics.

                                favicon

                                (charactercreator.org)

                                MADE, BORN AND LIVING IN BERLIN
                                Big Thank You to all Programmers
                                Some German words are so long that they have a perspective. M.Twain

                                1 Reply Last reply Reply Quote 0
                                • T Online
                                  TIG Moderator
                                  last edited by 12 Jun 2020, 20:48

                                  It is something to do with some semi-transparent pixels around the eyes/glasses which mess up the outline of the form when the main transparent areas are discounted...

                                  Try flattening the image then deleting only the main 'blue' areas around the body to add back in the transparent alpha-channel...

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • D Offline
                                    deaneau
                                    last edited by 12 Jun 2020, 21:29

                                    ok Thank you TIG.
                                    and stay healthy.

                                    MADE, BORN AND LIVING IN BERLIN
                                    Big Thank You to all Programmers
                                    Some German words are so long that they have a perspective. M.Twain

                                    1 Reply Last reply Reply Quote 0
                                    • J Offline
                                      joshtays
                                      last edited by 28 Jan 2021, 18:17

                                      Java default.JPGStumped:
                                      Deleted root level plugin folder and rb file
                                      Downloaded fresh from Sketchucation
                                      re-installed from extension manager
                                      Uninstalled ALL compresssion apps
                                      Ensured all jar files default to java
                                      Ran 2021 installer as admin, repair
                                      deleted SKMTools temp folder

                                      Still getting creating edges, then no dialogue box for simplify, standup, etc, like plugin used to do, processing ends, image remains png.

                                      File is 100% alpha on image and 0% on background, confirmed in PS

                                      TrimmedImages folder with png from SU file is generated in root folder that SU file lives in.


                                      Making edges.JPG


                                      click to drag.JPG

                                      1 Reply Last reply Reply Quote 0
                                      • D Offline
                                        Dave R
                                        last edited by 30 Jan 2021, 15:51

                                        What version of SketchUp are you using? SketchUp 7 as indicated in your profile?

                                        Etaoin Shrdlu

                                        %

                                        (THERE'S NO PLACE LIKE)

                                        G28 X0.0 Y0.0 Z0.0

                                        M30

                                        %

                                        1 Reply Last reply Reply Quote 0
                                        • T Online
                                          TIG Moderator
                                          last edited by 30 Jan 2021, 15:58

                                          Run it with the Ruby Console open and see if there are any error messages.
                                          Also you PNG image has not been 'optimized' there are large areas of 'blank-space' around the tree...
                                          Ensure that only the background pixels have transparency and that the image is cropped to minimize those, to speed up processing...
                                          What files in in the temp folder after processing ?

                                          TIG

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

                                          Advertisement