• Login
sketchucation logo sketchucation
  • Login
πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

Import .eps File for Use with Push-Pull Tool?

Scheduled Pinned Locked Moved Newbie Forum
sketchup
40 Posts 3 Posters 2.9k Views 3 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.
  • V Offline
    VikR
    last edited by 26 Jan 2011, 10:11

    Okay, great. Thanks very much for coding this great script.

    1 Reply Last reply Reply Quote 0
    • V Offline
      VikR
      last edited by 27 Jan 2011, 19:50

      I'm using ImageTrimmer on a new image, and it looks like I still have a bit to learn in order to use it correctly. I thought I'd gotten rid of all the non-black pixels, but I guess there must still be some. A few questions:

      • You mentioned that you'd looked at the ImageTrimmer Edges files and spotted the bad pixels. Where can I find the ImageTrimmer Edges files?
      • Do I need to apply a texture to the .png image in SU before using ImageTrimmer?

      The image is attached.


      Article I.skp

      1 Reply Last reply Reply Quote 0
      • T Offline
        TIG Moderator
        last edited by 27 Jan 2011, 21:36

        VikR

        Here's a working version...
        Your PNG was pretty much OK - Black and Transparent... BUT it had loads of unneeded blank areas.
        I cropped it to suit = it's < 1/4 size and processed > 16 times faster!
        I did a bit of manual tidying as there were some missing pixels on thin parts etc...
        The Edges files etc are in the TrimmedImages folder IF you elect NOT to delete it!
        To use ImageTrimmer select a suitably prepared Image and run ImageTrimmer - that's all πŸ˜•
        Article1.PNGArticle1.zip

        TIG

        1 Reply Last reply Reply Quote 0
        • V Offline
          VikR
          last edited by 27 Jan 2011, 23:26

          I clicked on the top image - the all-black imported png - in the "Article 1" .skp file you provided. I ran ImageTrimmer. It's been running for 40 minutes now with no visible results. I'm running on a 2-month-old 2.4 GHz Intel Core 2 Duo MacBook Pro with 4GB of ram. Could I be missing something?

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 28 Jan 2011, 00:12

            @vikr said:

            I clicked on the top image - the all-black imported png - in the "Article 1" .skp file you provided. I ran ImageTrimmer. It's been running for 40 minutes now with no visible results. I'm running on a 2-month-old 2.4 GHz Intel Core 2 Duo MacBook Pro with 4GB of ram. Could I be missing something?

            It should take <1 minute to complete,
            It should take only a few seconds to make a component of this simplicity [even if you don't have proper access rights to the ../Plugins/SKMtools folder/contents [should be 'full'] and/or the folder containing the SKP itself]... it should time out after 1 minute of it not starting to make the png file with the jar!
            Kill it and start again...
            Move the TrimmedImages folder from the SKP's folder.
            Check if there are any png files in it that were made about the start of the process...
            Start again...
            What messages do you get in the Status Bar before it 'sticks' ?
            What messages do you get in the Ruby Console [open it before running ImageTrimmer] - if any ?
            Can you run other java/jar files on your Mac ?
            Is there a from.ini and to.ini file in ../Plugins/SKMtools folder - if so what does the text in them say ?
            If it's the paths to the TrimmedImages folder with the SKP [with file names] and there's a file called 'Article I.png' [or similar] in the ini file and also in the folder, then move all other files out of it, then double click on the jar file called EdgeDetector.jar in the SKMtools folder - do you get error messages or does it make the 'Article I[Edged].png' file ?
            If it's making that then the glitch is in the processing...

            This is most puzzling as I processed that image as I sent you within minutes on a rubbish old PC with Vista [SUp v8] πŸ˜•

            TIG

            1 Reply Last reply Reply Quote 0
            • V Offline
              VikR
              last edited by 28 Jan 2011, 01:19

              I did the following:

              • Set permissions for Plugins and all included files and folders to read/write/execute for everyone (had been read/write/execute for my account only)
              • Checked for images made about the start of the process - found one - "Article_I.png" - opened it in PhotoShop - it seemed to be identical to the png we are working on.
              • Moved all TrimmedImages folders to the trash
              • Copied the latest Article I.skip file to its own folder on the desktop and opened it in SU
              • Opened Ruby Console
              • Clicked the imported .png image in SU
              • Started ImageTrimmer
              • Waited a bit
              • Status bar message: "ImageTrimmer: Making 'Edges' files - please wait..."
              • Ruby console messages: aha! There's an error message:
              Error; #<Errno;;ENOENT; No such file or directory - /Users/myUserName/Desktop/imagesToProcess/TrimmedImages/C__Users_TIG_Desktop_Article_I[Edges].dat>
              /Users/myUserName/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SKMtools/ImageTrimmer.rb;233;in `readlines'
              /Users/myUserName/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SKMtools/ImageTrimmer.rb;233;in `make_edges'
              /Users/myUserName/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SKMtools/ImageTrimmer.rb;186;in `process_image'
              /Users/myUserName/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SKMtools/ImageTrimmer.rb;163;in `initialize'
              /Users/myUserName/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SKMtools/ImageTrimmer.rb;760;in `new'
              /Users/myUserName/Library/Application Support/Google SketchUp 8/SketchUp/Plugins/SKMtools/ImageTrimmer.rb;760
              

              No file named "C__Users_TIG_Desktop_Article_I[Edges].dat" is found in the TrimmedImages folder. There is one file in there at this time, called "C__Users_TIG_Desktop_Article_I.png".

              from.ini contains:

              /Users/myUserName/Desktop/imagesToProcess/TrimmedImages/C__Users_TIG_Desktop_Article_I.png
              

              to.ini contains:

              /Users/myUserName/Desktop/imagesToProcess/TrimmedImages/C__Users_TIG_Desktop_Article_I
              
              • Ran EdgeDetector.jar - it worked! It added to files to the TrimmedImages folder:
                C__Users_TIG_Desktop_Article_I[Edges].dat
                C__Users_TIG_Desktop_Article_I[Edges].png

              I'm a coder myself (although not yet a Ruby coder) - I'm used to working with error messages. What does this tell us? Can I change something?

              1 Reply Last reply Reply Quote 0
              • V Offline
                VikR
                last edited by 28 Jan 2011, 05:04

                I wanted to see if I could rule out Mac vs. PC issues, so I launched Windows in Parallels, a Windows emulator for Mac. I installed Sketchup on Windows and the SKMTools plugin. I moved the Article_1.skp file to My Documents, and ran ImageTrimmer. Here is the output from the Ruby Console:

                Error; #<Errno;;ENOENT; No such file or directory - C;\Users\Administrator\Documents\TrimmedImages\Article_I[Edges].dat>
                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;233;in `readlines'
                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;233;in `make_edges'
                C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;186;in `process_image'
                
                1 Reply Last reply Reply Quote 0
                • T Offline
                  TIG Moderator
                  last edited by 28 Jan 2011, 10:02

                  @vikr said:

                  I wanted to see if I could rule out Mac vs. PC issues, so I launched Windows in Parallels, a Windows emulator for Mac. I installed Sketchup on Windows and the SKMTools plugin. I moved the Article_1.skp file to My Documents, and ran ImageTrimmer. Here is the output from the Ruby Console:

                  Error; #<Errno;;ENOENT; No such file or directory - C;\Users\Administrator\Documents\TrimmedImages\Article_I[Edges].dat>
                  > C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;233;in `readlines'
                  > C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;233;in `make_edges'
                  > C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;186;in `process_image'
                  

                  So for some reason you aren't getting the jar file to fire and make the Article_I[Edges].dat file ??? Is there a Article_I[Edges].dpng file getting made ????
                  Did you check access rights to the ../Plugins/SKMtools folder and its contents were set as I explained ? πŸ˜•

                  TIG

                  1 Reply Last reply Reply Quote 0
                  • V Offline
                    VikR
                    last edited by 28 Jan 2011, 17:42

                    @unknownuser said:

                    So for some reason you aren't getting the jar file to fire and make the Article_I[Edges].dat file ??? Is there a Article_I[Edges].dpng file getting made ????
                    Did you check access rights to the ../Plugins/SKMtools folder and its contents were set as I explained ?

                    Yes - when I run ImageTrimmer from inside SU, it appears the jar file doesn't fire. As I noted in the post before last, there is no [Edges] file in the TrimmedImages folder after running ImageTrimmer. However, if I double-click the EdgeDetector.jar file, it works correctly, and the following two files are created:

                    C__Users_TIG_Desktop_Article_I[Edges].dat
                    C__Users_TIG_Desktop_Article_I[Edges].png

                    I have checked the access rights per your post.

                    1 Reply Last reply Reply Quote 0
                    • T Offline
                      TIG Moderator
                      last edited by 28 Jan 2011, 18:02

                      @vikr said:

                      @unknownuser said:

                      So for some reason you aren't getting the jar file to fire and make the Article_I[Edges].dat file ??? Is there a Article_I[Edges].dpng file getting made ????
                      Did you check access rights to the ../Plugins/SKMtools folder and its contents were set as I explained ?

                      Yes - when I run ImageTrimmer from inside SU, it appears the jar file doesn't fire. As I noted in the post before last, there is no [Edges] file in the TrimmedImages folder after running ImageTrimmer. However, if I double-click the EdgeDetector.jar file, it works correctly, and the following two files are created:

                      C__Users_TIG_Desktop_Article_I[Edges].dat
                      C__Users_TIG_Desktop_Article_I[Edges].png

                      I have checked the access rights per your post.

                      This a MAC OS issue... can you check your Java settings [Control Panel] so they allow 'jar' files to be executed as well as double-clicked... Sorry I can't be too helpful as I don't have access to a MAC...

                      TIG

                      1 Reply Last reply Reply Quote 0
                      • V Offline
                        VikR
                        last edited by 28 Jan 2011, 18:55

                        Okay. I will run it on my wife's Windows computer.

                        1 Reply Last reply Reply Quote 0
                        • V Offline
                          VikR
                          last edited by 28 Jan 2011, 19:18

                          I installed SU and SKMTools on my wife's Toshiba laptop running Windows 7. Running ImageTrimmer, I get the same error message in the Ruby Console:

                          Error; #<Errno;;ENOENT; No such file or directory - I;\imagesToProcess\TrimmedImages\Article_I[Edges].dat>
                          C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;233;in `readlines'
                          C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;233;in `make_edges'
                          C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;186;in `process_image'
                          C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;163;in `initialize'
                          C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;760;in `new'
                          C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;760
                          C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;233;in `call'
                          C;/Program Files (x86)/Google/Google SketchUp 8/Plugins/SKMtools/ImageTrimmer.rb;233
                          

                          As I mentioned, I'm a programmer too (although not in Ruby) and I'm used to working with error messages. Is there anything I can change here?

                          1 Reply Last reply Reply Quote 0
                          • T Offline
                            TIG Moderator
                            last edited by 28 Jan 2011, 21:08

                            The computer's Java settings must allow jar files to run when called from a cmd/command terminal...
                            Most do... I'm no sure why both your PC and MAC don't πŸ˜• πŸ˜• πŸ˜•

                            TIG

                            1 Reply Last reply Reply Quote 0
                            • V Offline
                              VikR
                              last edited by 28 Jan 2011, 21:31

                              Is there a setting on my wife's Windows machine I can change to allow it to execute .jar files?

                              1 Reply Last reply Reply Quote 0
                              • T Offline
                                TIG Moderator
                                last edited by 28 Jan 2011, 22:54

                                Is there a Java Control Panel ?
                                If not try installing Sun Java ?

                                TIG

                                1 Reply Last reply Reply Quote 0
                                • T Offline
                                  TIG Moderator
                                  last edited by 28 Jan 2011, 23:01

                                  Here are my own Java CP settings that work [I haven't changed them πŸ˜• ]...javaCP1.pngjavaCP2.pngjavaCP3.png

                                  TIG

                                  1 Reply Last reply Reply Quote 0
                                  • V Offline
                                    VikR
                                    last edited by 29 Jan 2011, 00:53

                                    I looked for the Java CP, didn't find it, and realized Java wasn't installed on the Windows machine! I installed Java, and ImageTrimmer worked perfectly.

                                    1 Reply Last reply Reply Quote 0
                                    • T Offline
                                      TIG Moderator
                                      last edited by 29 Jan 2011, 01:08

                                      @vikr said:

                                      I looked for the Java CP, didn't find it, and realized Java wasn't installed on the Windows machine! I installed Java, and ImageTrimmer worked perfectly.

                                      Doh! πŸ˜‰

                                      TIG

                                      1 Reply Last reply Reply Quote 0
                                      • V Offline
                                        VikR
                                        last edited by 29 Jan 2011, 03:17

                                        I really appreciate all your help.

                                        1 Reply Last reply Reply Quote 0
                                        • 1
                                        • 2
                                        • 2 / 2
                                        2 / 2
                                        • First post
                                          31/40
                                          Last post
                                        Buy SketchPlus
                                        Buy SUbD
                                        Buy WrapR
                                        Buy eBook
                                        Buy Modelur
                                        Buy Vertex Tools
                                        Buy SketchCuisine
                                        Buy FormFonts

                                        Advertisement