• Login
sketchucation logo sketchucation
  • Login
ℹ️ GoFundMe | Our friend Gus Robatto needs some help in a challenging time Learn More

Batch convert JPG's to SKM

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

    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
    • D Offline
      Dave R
      last edited by 10 Sept 2020, 17:22

      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
      • T Offline
        TIG Moderator
        last edited by 10 Sept 2020, 18:28

        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 10 Sept 2020, 18:53

          Thanks for the replies
          My ver is 2020
          Updated my profile 😄

          1 Reply Last reply Reply Quote 0
          • T Offline
            TIG Moderator
            last edited by 10 Sept 2020, 21:42

            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 11 Sept 2020, 16:07

              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
              1 / 1
              • First post
                4/6
                Last post
              Buy SketchPlus
              Buy SUbD
              Buy WrapR
              Buy eBook
              Buy Modelur
              Buy Vertex Tools
              Buy SketchCuisine
              Buy FormFonts

              Advertisement