• Login
sketchucation logo sketchucation
  • Login
🤑 SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

[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 Offline
    TIG Moderator
    last edited by 23 Aug 2022, 22:59

    Does it make C:\Eric Miscellaneous\TrimmedImages\15098587-PcbMIOCd[Edges].dat but fails to find it, or does it fail to make it ?
    Not making it at all points to perhaps an issue with the PNG itself [e.g. all pixels have some transparency], but if you use the PNG referred to previously it should be processed OK...

    Failure to find or make it at all suggests a permissions issue...

    Have you installed SketchUp properly ?
    You can fix it and not compromise installed extensions etc, thus...
    Close SketchUp
    Find the relevant SketchUp installer's exe file - usually in your Downloads folder - but you might have moved it...
    Select the installer's exe file's icon, right-click > context-menu > Install as administrator...
    In the dialog that will open choose 'Repair'
    SketchUp is now [re]installed with proper permissions...
    Restart to see if that helped...

    Otherwise, check that the folder 'Eric Miscellaneous' has no restrictive permissions set, which could be preventing the ability to write files to it via SketchUp / Java...
    Try running the SKP from a clearly 'neutral' location - e.g. your 'Desktop'... the subfolder of files needed in the processing is always made with the SKP itself...

    TIG

    1 Reply Last reply Reply Quote 0
    • B Offline
      boofredlay
      last edited by 26 Aug 2022, 19:23

      I did as you directed and still no joy.
      Oh well. I hate for you to keep messing with this. I will just continue on trimming manually.

      Thanks for all the help even though we did not get it resolved.

      http://www.coroflot.com/boofredlay

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 26 Aug 2022, 22:55

        If you ever get a clue what's up let me know...
        I'm at a loss...

        TIG

        1 Reply Last reply Reply Quote 0
        • B Offline
          blajnov
          last edited by 15 Dec 2022, 04:07

          @boofredlay said:

          It seems to be opening with Java...


          2022-12-15_06-48-33.jpg

          1 Reply Last reply Reply Quote 0
          • E Offline
            Efik_CZme Newcomers
            last edited by 5 Feb 2023, 18:57

            Hi guys,

            same problem here as boofredlay. Trimming doesnt work for me in exactly the same way. I followed the whole quest-line of repair instructions. Also no change and the tool still doesn't work.

            I super appreciate the fact, that there is somebody trying to make the tools, that SketchUp team is ignoring. Damn the trimming itself would save hundred hours of work... As boofredlay says..:

            "Back to manual trimming."

            1 Reply Last reply Reply Quote 0
            • D Offline
              Dave R
              last edited by 6 Feb 2023, 01:35

              @efik_czme said:

              same problem here as boofredlay.

              Share the image you're trying to trim so we can see if there's something that can be done.

              Etaoin Shrdlu

              %

              (THERE'S NO PLACE LIKE)

              G28 X0.0 Y0.0 Z0.0

              M30

              %

              1 Reply Last reply Reply Quote 0
              • E Offline
                Efik_CZme Newcomers
                last edited by 6 Feb 2023, 15:14

                Dave R:

                Wow. Thanks for the quick reply. I didn't expect that.
                The whole story, here we go:

                • I downloaded the plugin from this website.
                • Installed it through the extension manager.
                • At first use, I got the message "Open .jar with" so I selected SketchUp... As I didn't know better.
                • Through youtube tutorials, I realized I don't have installed java (shameful I know)
                • Installed the latest Java version.
                • Associated .jar with java.
                • Tried again
                • Got myself to the point of "Making Edges files"
                • Through the process the SketchUp freeze.
                • Went through other chats searching for solutions, until I got here and followed the whole TIG/BOOFREDLAY consultation and followed the proposed steps.
                • No change. I tried with multiple different .png , Including the simplest black circle. No change.

                I attached some explanatory pictures, including the last one. Sorry for the national language in programs (Neodpovídá = Not Responding)


                1.jpg


                2.jpg


                3.jpg


                The last PNG I used.


                4.jpg


                5.jpg

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Dave R
                  last edited by 6 Feb 2023, 16:28

                  I imported your image into SketchUp 2022 and ran Image Trimmer. It worked just fine. It actually went a little faster than I expected.

                  Screenshot - 2_6_2023 , 10_24_40 AM.png

                  Clearly this isn't an issue with SketchUp 2022 or with Image Trimmer.

                  Did you install SketchUp correctly? That requires right clicking on the downloaded installer and choosing Run as administrator from the Context menu.

                  Etaoin Shrdlu

                  %

                  (THERE'S NO PLACE LIKE)

                  G28 X0.0 Y0.0 Z0.0

                  M30

                  %

                  1 Reply Last reply Reply Quote 0
                  • E Offline
                    Efik_CZme Newcomers
                    last edited by 6 Feb 2023, 16:57

                    Just reinstalled SketchUp... As and administrator. Still the same story.

                    1 Reply Last reply Reply Quote 0
                    • A Offline
                      amckeag
                      last edited by 29 Nov 2023, 16:22

                      I'm experiencing similar issues - I can get ImageTrimmer to run. The extension creates a temporary "TrimmedImage" folder and all of the .jar files are in the correct folder. However, it never proceeds to "Make Component Stand Up" and beyond. Any ideas how to fix?

                      1 Reply Last reply Reply Quote 0
                      • D Offline
                        Dave R
                        last edited by 29 Nov 2023, 16:47

                        @amckeag said:

                        Any ideas how to fix?

                        Hard to say with no more information. Share the .skp file with us so we can see what you are working with. What do you see if you run the extension with the Ruby Console open?

                        Are you still using SketchUp 2019 on Mac? Which operating system?

                        Etaoin Shrdlu

                        %

                        (THERE'S NO PLACE LIKE)

                        G28 X0.0 Y0.0 Z0.0

                        M30

                        %

                        1 Reply Last reply Reply Quote 0
                        • A Offline
                          amckeag
                          last edited by amckeag 29 Nov 2023, 17:13

                          I'm using SU 2022. I'll update my profile. Here's what the Ruby Console returns:

                          Error: #<Errno::ENOENT: No such file or directory @ rb_sysopen - C:\Users\amXXXX\OneDrive\Desktop\TrimmedImages\2[Edges].dat>
                          C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:277:in readlines' C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:277:in make_edges'
                          C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:201:in process_image' C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:170:in initialize'
                          C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:834:in new' C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:834:in block in <top (required)>'
                          "Add help menu!"
                          "create new"
                          "created"
                          #Sketchup::Menu:0x0000025595434c60
                          (eval):23: warning: calling URI.open via Kernel#open is deprecated, call URI.open directly or use URI#open

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 29 Nov 2023, 22:28

                            The 'edges' .dat file in the subfolder is made by the .jar applets.
                            If the file doesn't exist then something is preventing this...

                            Possibilities include -
                            The .jar files are not properly associated to be run by Java - e.g. that file-type is hijacked by your compression-software settings
                            You/SketchUp do not having permission to make the subfolder and files in the location of the model's SKP.
                            I notice the path in the error has 'OneDrive' in it - do you have some nonstandard network set up ?
                            Does the 'TrimmedImages' subfolder get made ?
                            Have you tried it in a simpler folder structure on your PC ?
                            Also the PNG file image placed/selected in the model must have some transparent and some fully opaque pixels [solid].
                            If all pixels have some transparency then the 'edges' file will be blank because there are no solid areas to trim out. If some pixels have even the slightest transparency then the code reads them as non-solid !
                            A image editor can quickly flatten the image, add back a transparent layer and then delete selected pixels to leave a transparent background and a solid object within it.

                            All of these issues are covered in earlier posts in this thread...

                            If you attach the PNG file to a reply I can look at it for you...

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • A Offline
                              amckeag
                              last edited by amckeag 29 Nov 2023, 23:54

                              @tig said:

                              If you attach the PNG file to a reply I can look at it for you...

                              Thanks, TIG. I redirected the file to save directly in my \Documents folder, not connected via OneDrive. I ran into the same issue. Here's the Ruby Console Report:

                              Error: #<Errno::ENOENT: No such file or directory @ rb_sysopen - C:\Users\amXXXXXX\Documents\TrimmedImages\2[Edges].dat>
                              C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:277:in readlines' C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:277:in make_edges'
                              C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:201:in process_image' C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:170:in initialize'
                              C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:834:in new' C:/Users/amckeag/AppData/Roaming/SketchUp/SketchUp 2022/SketchUp/Plugins/SKMtools/ImageTrimmer.rb:834:in block in <top (required)>'

                              I've also attached one of the .pngs I've tested. I've read through all of the other comments and have Java installed as well as all of the correct files, I believe (see second attachment). Any help is appreciated.


                              2.png


                              SKMToole_test.png

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                TIG Moderator
                                last edited by 30 Nov 2023, 00:53

                                I don't get your error message [or any errors at all].
                                Your PNG is OK.
                                I can trim other PNGs too.
                                The subfolder and its files get made and a trimmed result is made in a few seconds.
                                See the attached image...

                                But I have found that in the newer SketchUp versions, if I import the PNG as an Image it always works, but if I drag-n-drop the PNG into the model it sometimes hangs [with no errors] - the status bar says at making the 'Edges file', although the subfolder and all files get made, the processing fails to complete properly ! Weird !


                                Capture.PNG

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • A Offline
                                  amckeag
                                  last edited by 30 Nov 2023, 15:53

                                  Thanks so much for troubleshooting, TIG. I still cannot get ImageTrimmer to work on my PC. However, it works on my Mac in SU 2023. My assumption now is that is has something to do with the version of Java installed on my PC. I'll still with Mac for this task. Thanks again!

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

                                  Advertisement