sketchucation logo sketchucation
    • Login
    ℹ️ Licensed Extensions | FredoBatch, ElevationProfile, FredoSketch, LayOps, MatSim and Pic2Shape will require license from Sept 1st More Info

    LAYERS COLORS TO TEXTURE OR MATERIAL

    Scheduled Pinned Locked Moved SketchUp Discussions
    2 Posts 2 Posters 0 Views 2 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.
    • J Offline
      JTESTUDIO Newcomers
      last edited by

      HI THERE, I WANNA KNOW IF THERE ARE ANY EASY WAY TO CONVERT MY LAYERS COLORS TO MATERIALS.

      THANKS

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        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...

        TIG

        1 Reply Last reply Reply Quote 0
        • 1 / 1
        • First post
          Last post
        Buy SketchPlus
        Buy SUbD
        Buy WrapR
        Buy eBook
        Buy Modelur
        Buy Vertex Tools
        Buy SketchCuisine
        Buy FormFonts

        Advertisement