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

    Can we save sketchup materials .skm files as JPG ?

    Scheduled Pinned Locked Moved Newbie Forum
    sketchup
    8 Posts 5 Posters 14.5k Views 5 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.
    • E Offline
      erentumer
      last edited by

      I want to edit and save .skm filaes as jpg files is it possible?

      1 Reply Last reply Reply Quote 0
      • GaieusG Offline
        Gaieus
        last edited by

        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...

        Gai...

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

          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

          TIG

          1 Reply Last reply Reply Quote 0
          • GaieusG Offline
            Gaieus
            last edited by

            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.

            Gai...

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

              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...

              TIG

              1 Reply Last reply Reply Quote 0
              • E Offline
                erentumer
                last edited by

                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..

                1 Reply Last reply Reply Quote 0
                • V Offline
                  volatileant
                  last edited by

                  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.

                  1 Reply Last reply Reply Quote 0
                  • HornOxxH Offline
                    HornOxx
                    last edited by

                    @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 πŸ‘ πŸ˜„

                    never trust a skinny cook

                    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