sketchucation logo sketchucation
    • Login
    πŸ›£οΈ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Materials Browser in Ruby?

    scheduled pinned locked moved Developers' Forum
    3 Posts 2 Posters 179 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • M Offline
      MartinRinehart
      last edited by

      I'd like to give the user access to set the current material to a material not yet in the model. Something like:

      mats.current = 'Wood_Cherry_Original'

      Is this possible? It fails with a "Could not find..." message except for materials already in the model.

      Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

      one-reply-to-this-post last-reply-time reply quote 0
      • TIGT Offline
        TIG Moderator
        last edited by

        You can't [yet] import skm files.
        If you could then material.import(pathname) would be there...
        You can make a new material based on the name of an image file and even colorize it from that etc...
        However, it'd means splitting out the parts of the material's 'skm' file [which is really a 'zip' file] and taking the image file part, then making that as your new material's texture [with appropriate scaling] etc etc...
        Nothing is easy πŸ˜‰

        TIG

        one-reply-to-this-post last-reply-time reply quote 0
        • M Offline
          MartinRinehart
          last edited by

          @tig said:

          splitting out the parts of the material's 'skm' file [which is really a 'zip' file] and taking the image file part, then making that as your new material's texture [with appropriate scaling] etc etc...

          Thanks. I was afraid of that.

          Author, Edges to Rubies - The Complete SketchUp Tutorial at http://www.MartinRinehart.com/models/tutorial.

          one-reply-to-this-post last-reply-time 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