sketchucation logo sketchucation
    • Login
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    [REQ] Print material list

    scheduled pinned locked moved Plugins
    3 Posts 2 Posters 161 Views 2 Watching
    loading-more-posts
    • oldest-to-newest
    • newest-to-oldest
    • most-votes
    reply
    • reply-as-topic
    guest-login-reply
    deleted-message
    • J Offline
      j_forrester
      last edited by

      Does anyone know of a script that can print all material names to the console?

      Many thanks in advance.

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

        Copy+paste this text +<enter> into the Ruby Console: it prints a list of all of the model's material names

        puts;Sketchup.active_model.materials.each{|m|puts m.display_name};puts;
        

        Note that the two puts; are simply to format the output with an empty line in and out...

        TIG

        one-reply-to-this-post last-reply-time reply quote 0
        • J Offline
          j_forrester
          last edited by

          Thank you TIG. Very much appreciated!

          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