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

    [REQ] Print material list

    Scheduled Pinned Locked Moved Plugins
    3 Posts 2 Posters 150 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
      j_forrester
      last edited by

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

      Many thanks in advance.

      1 Reply Last reply Reply Quote 0
      • TIGT Offline
        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

        1 Reply Last reply Reply Quote 0
        • J Offline
          j_forrester
          last edited by

          Thank you TIG. Very much appreciated!

          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