sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    Batch convert JPG's to SKM

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    6 Posts 3 Posters 2.7k 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.
    • B Offline
      Buckyman
      last edited by

      I have about 100 fabric patterns I want to save in Sketchup
      I did not find any plugins on Sketchucation or the extension store, but I did find this:

      https://sites.google.com/site/sagesuwiki/tutorials/plugins/tutorials/batch-convert-jpgs-to-skm

      Just checking if this is a trusted source

      thx

      1 Reply Last reply Reply Quote 0
      • Dave RD Offline
        Dave R
        last edited by

        It's probably fine. Looks like it hasn't had any love for a very long time. What version of SketchUp are you using? Your profile says 2013 but if you are using a newer version, the extension may or may not work. You can give it a try, though.

        Etaoin Shrdlu

        %

        (THERE'S NO PLACE LIKE)

        G28 X0.0 Y0.0 Z0.0

        M30

        %

        1 Reply Last reply Reply Quote 0
        • TIGT Online
          TIG Moderator
          last edited by

          There are very old solutions already invented here...

          https://sketchucation.com/forums/viewtopic.php?p=232684#p232684

          https://sketchucation.com/forums/viewtopic.php?p=13910#p13910

          Remember that this is VERY old and poorly configured, BUT the code should still work...

          Paste the text into a "xxx.rb" plain-text file in your ../Plugins folder...
          Restart SketchUp to load it...

          TIG

          1 Reply Last reply Reply Quote 0
          • B Offline
            Buckyman
            last edited by

            Thanks for the replies
            My ver is 2020
            Updated my profile πŸ˜„

            1 Reply Last reply Reply Quote 0
            • TIGT Online
              TIG Moderator
              last edited by

              Here's the code made into an RB file.
              It now meets minimum API coding requirements etc.
              It's not been 'signed', so your Extension Manager > Loading policy needs to 'Unrestricted'

              Usage:

              Put this RB file into your Plugin folder and restart SketchUp...

              'Import Images as Materials' in the Extensions menu.

              Choose the folder with all of your image files.

              This script will create a material and name it the same name as the image file

              then use that file as each material's texture.

              All textures will come in at a standard scale and must be edited later

              After all materials and textures have been imported into the model, edit & add them to your library

              You can then save that library as .skm file through Sketchup.


              TIG-ImageImporter.rb

              TIG

              1 Reply Last reply Reply Quote 0
              • B Offline
                Buckyman
                last edited by

                Thanks very much TIG
                I pasted the old code and it worked. All jpg were added to the materials windows, then I saved as a collection
                I will replace it with your code
                Take Care πŸ˜„

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

                Advertisement