Can we save sketchup materials .skm files as JPG ?
-
I want to edit and save .skm filaes as jpg files is it possible?
-
skm files are actually renamed zip archives. If you change the extension to zip, you can find the image file (and some xml files describing certain properties).
So basically you cannot convert an skm file into a jpg file but you can extract it from inside...
-
As Gaieus said you can manually extract the image from a .SKM file - as it is effectively a .ZIP file that can be opened.
My SKMtools add extra functions for manipulating SKM files in Ruby not available in the API - but these are probably beyond what you need - although if you have dozens to process you could write a short script that would use some of these functions, iterate through a folder of SKMs and extracted each SKM's image-file [and/or the thumbnail] for you into a subfolder.
If your SKMs are loaded into a SKP project then Didier Bur's 'very fast texture writer' will swiftly dump all of the SKP's materials' texture image-files for you, en mass... see here http://forums.sketchucation.com/viewtopic.php?p=330472#p330472 -
In that case, you can also export your model simply to dae and SU will create a folder with all the used image textures also exported.
-
The dae export can also be a quick way... but the texture_writer by Didier does the same without the potentially confusing dae file etc - also note that the texture_writer method exports all materials' images, and not just ones that have been used in the SKP - unlike the dae export 'trick' which will only export used materials' images.
As I hope I explained if you have dozens of SKM files that aren't accessible via a SKP then it'd be a pain to process them as zips OR load them into a SKP and 'export them'- perhaps you have downloaded them or no longer have the original SKP used to make them then my SKMtools can extract the images from them - however, you'd need to write a simple script to loop through the SKMs and process them... -
to convert .skm to zip is useful for me I think.actually I can edit it and owerwrite as .skm file in the materials folder again.I ' ll try.
Thank you.. -
I stumbled across this post when trying to export a material after it had been modified in SketchUp with the color sliders.
Exporting to .DAE produces .JPG files where any transformations material edits performed in SketchUp have been 'baked' into the image.
-
@gaieus said:
...skm files are actually renamed zip archives...
Thanks Gaieus and Tig for clarifying that - and for adding this new chapter in my personally D'oh Book
Advertisement