Can Sketchup Ruby find the path of a SKM file?
-
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? -
material.texture.filename
??And TIG has his SKM Tools available in the Plugins forum (check the index.)
-
@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
-
No SKM features is exposed to the API.
-
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...
Advertisement