LAYERS COLORS TO TEXTURE OR MATERIAL
-
HI THERE, I WANNA KNOW IF THERE ARE ANY EASY WAY TO CONVERT MY LAYERS COLORS TO MATERIALS.
THANKS
-
Please don't SHOUT at us !
Typing everything in capital letters is considered to be bad-manners...Now to answer your question...
Layers [Tags] can have colors set manually from your model's materials - including transparency and textures...
But only their colors are accessible [get/set] through the Ruby API - i.e. not transparency or textures.
SketchUp can have materials which include simple colors and textures - with or without transparency.
So if you want to 'extract' your layer/tag colors with Ruby it is possible, then you can use the color' RGB data to make a new material in your model [perhaps named after the layer/tag name ?].
However, although it's possible, it's not simple !There have previously been several threads discussing this... try searching the forums' posts...
There are working code examples...
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