sketchucation logo sketchucation
    • Login
    πŸ€‘ SketchPlus 1.3 | 44 Tools for $15 until June 20th Buy Now

    Can Sketchup Ruby find the path of a SKM file?

    Scheduled Pinned Locked Moved Developers' Forum
    5 Posts 4 Posters 583 Views 4 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.
    • dereiD Offline
      derei
      last edited by

      Is it possible to find the path of a Skm file loaded from a library ?
      I know there are methods to work with material that are in model, but if I load a material from a library, is any way to retrieve the path where that material rests on my hard-drive?

      DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

      1 Reply Last reply Reply Quote 0
      • Dan RathbunD Offline
        Dan Rathbun
        last edited by

        material.texture.filename ??

        And TIG has his SKM Tools available in the Plugins forum (check the index.)

        I'm not here much anymore.

        1 Reply Last reply Reply Quote 0
        • dereiD Offline
          derei
          last edited by

          @dan rathbun said:

          material.texture.filename ??

          As this code looks like, I'm sure it returns the filename of the texture INSIDE the SKM. I'm interested to retrieve the path where my SKM is saved on hard-drive, like C:\Program Files\Google\Google SketchUp 8\Materials\Groundcover\Groundcover_BarkChips.skm

          DESIGNER AND ARTIST [DEREI.UK](http://derei.uk/l)

          1 Reply Last reply Reply Quote 0
          • thomthomT Offline
            thomthom
            last edited by

            No SKM features is exposed to the API.

            Thomas Thomassen β€” SketchUp Monkey & Coding addict
            List of my plugins and link to the CookieWare fund

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

              As said... there are currently no access to SKMs in the API [only materials and textures], but my SKMtools do add extra methods to allow you to import a SKM file as anew material, export a material as a SKM file, and do several other things - like extract a SKM's image and thumbnail etc...
              Search the Plugins Index and get it...

              TIG

              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