sketchucation logo sketchucation
    • Login
    Oops, your profile's looking a bit empty! To help us tailor your experience, please fill in key details like your SketchUp version, skill level, operating system, and more. Update and save your info on your profile page today!
    🛣️ Road Profile Builder | Generate roads, curbs and pavements easily Download

    Code snippet request

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    1 Posts 1 Posters 54 Views 1 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.
    • genma saotomeG Offline
      genma saotome
      last edited by

      Would someone be kind enough to help me write what I think will be a very short ruby script?

      I have a library of about 5000 SU models and I need to loop thru that list and for each of the materials replace the source file extension of .tga with .bmp. If there is a path to the file I need to edit that too. As you can imagine it would be an impossible task to do by hand.

      I've found a script that loops thru a directory of files so I figure I can "borrow" that code but I don't know what to do about editing the materials values.

      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