• 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
    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 Offline
      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 Offline
          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 Offline
              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 Offline
                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 Offline
                  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 Offline
                        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
                            • Dave RD 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 Offline
                                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
                                • J Offline
                                  joshtays
                                  last edited by 2 Feb 2021, 21:40

                                  Dave R, no sorry been a while since I've updated my profile, LOL. I'll update shortly

                                  SU V20.0.391 Win 64

                                  Machine is a gen 10 I7 desktop with RTX 3070 64GB RAM

                                  TIG - I'll try cropping the image harder, but this is happening with images that I have had success with in the past as well. In the temp folder that comes up in model location, the only file inside is a copy of the PNG.Edit not the temp folder you were asking about... Going to run with console on then check the temp folder and get back.

                                  1 Reply Last reply Reply Quote 0
                                  • J Offline
                                    joshtays
                                    last edited by 2 Feb 2021, 21:47

                                    -Ruby console-

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

                                    -Temp Folder-
                                    EdgeDetector.jar
                                    from.ini
                                    to.ini
                                    the ini files are pointing to the trimmed images folder, which for this test happens to be on my desktop

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 2 Feb 2021, 22:31

                                      The error relating to the creation of the ..\TrimmedImages\Etsy_Oaxacan_rug_zapotec[Edges].dat file suggest several possible issues...

                                      A possibility...

                                      1. Could you post the PNG you are using...
                                        If that image has all of its pixels with even some transparency, then they will get ignore because they'll be regarded as 'background', so you might end up with nothing to form 'edges' - and no .dat file...

                                      A known cause...
                                      2. Are your .JAR file-types set to be executed [opened] in Java ?
                                      Some compression applications can hijack that file-type, and so they try to open the file instead of letting it run as a the small Java applet [aka JAR] - vital to parse the image's pixel-data.
                                      Check any compression app's setting for file-types and do NOT include .JAR...

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • MikeG73M Offline
                                        MikeG73
                                        last edited by 22 Jul 2021, 22:29

                                        Hello TIG,

                                        Your extension offers a lot of promise, and I would like to know your recommendations for trimming and using this image as stampers for an F-14D Tomcat. Thank you!

                                        F-14D:
                                        https://3dwarehouse.sketchup.com/model/72e1cdcb882b6993c1006ed55bc1a3fc/Grumman-F-14D-Super-Tomcat

                                        Stampers:
                                        https://3dwarehouse.sketchup.com/model/691a25cbb1e7c3b420ca70e6f850f66e/Stampers-Tutoral
                                        https://3dwarehouse.sketchup.com/model/eaa7f7401f84d2ef67939c61bbcfb315/LOGO-Star-of-Life

                                        Decals:
                                        https://3dwarehouse.sketchup.com/model/0804427b-632e-436b-a445-768fd47e8ab2/German-Decals

                                        Cheers Mate! 😎


                                        Test_c.jpg

                                        1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          rustar123
                                          last edited by 7 Oct 2021, 00:13

                                          I cannot install this. Why?
                                          Please help me!


                                          12.jpg

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

                                          Advertisement