• Login
sketchucation logo sketchucation
  • Login
🔌 Quick Selection | Try Didier Bur's reworked classic extension that supercharges selections in SketchUp Download

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.
  • D Offline
    derei
    last edited by 5 Mar 2012, 21:22

    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
    • D Offline
      Dan Rathbun
      last edited by 5 Mar 2012, 21:45

      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
      • D Offline
        derei
        last edited by 5 Mar 2012, 22:25

        @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
        • T Offline
          thomthom
          last edited by 6 Mar 2012, 08:35

          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
          • T Offline
            TIG Moderator
            last edited by 6 Mar 2012, 09:21

            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
            1 / 1
            • First post
              1/5
              Last post
            Buy SketchPlus
            Buy SUbD
            Buy WrapR
            Buy eBook
            Buy Modelur
            Buy Vertex Tools
            Buy SketchCuisine
            Buy FormFonts

            Advertisement