Batch convert JPG's to SKM
-
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
-
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.
-
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... -
Thanks for the replies
My ver is 2020
Updated my profile -
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.
-
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
Advertisement