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...
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement