sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    πŸ«› Lightbeans Update | Metallic and Roughness auto-applied in SketchUp 2025+ Download

    Material import

    Scheduled Pinned Locked Moved Developers' Forum
    4 Posts 3 Posters 783 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.
    • Didier BurD Offline
      Didier Bur
      last edited by

      Hi all,
      Is it possible in a Ruby script to import in a model a material through its SKM file ?

      DB

      1 Reply Last reply Reply Quote 0
      • Didier BurD Offline
        Didier Bur
        last edited by

        Thanks guys.
        Interesting but it will be too complicated to implement in my multi-layers wall tool.
        What I wanted to do is to re-create materials (associated with wall styles) if they were not present in the model in which you import wall styles. 😞
        Regards,

        DB

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

          A .skm file is really a .zip file with another suffix. In a convoluted way you could copy it to the temp folder change it into a zip file, unzip it (you'd need win32.ole (? or ..api?) - [TBD's idea of DeZip = much better] etc and a free unzipper utility)... then the files you'd get out would include the jpg/png files and info about the material etc ... so you could then recreate it within the model rather than import it 'raw' ?

          TIG

          1 Reply Last reply Reply Quote 0
          • tbdT Offline
            tbd
            last edited by

            dezip library for SU Ruby - download
            it can be used to check .skm files and unzip textures

            it will evolve in a .skm sometime - if anyone wants to jump in, feel free

            SketchUp Ruby Consultant | Podium 1.x developer
            http://plugins.ro

            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