Name of texture
-
Hi!
If the scene has several textured components.
Is there a way to display in the message, the name of the texture only the selected component ? -
Open the Ruby Console.
Select one component-instance.
Copy/Paste this one-liner:Sketchup.active_model.selection[0].material.display_name -
Oh, sorry my mistake...
I meant not the name of the material and the name of the texture (for example :Wood_Cherry_Original.jpg) -
You obtain that from the Texture object: http://www.sketchup.com/intl/en/developer/docs/ourdoc/texture
-
Try
Sketchup.active_model.selection[0].material.texture.filename -
Thank you, TIG ! it works.
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