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

    Code snippet request

    Scheduled Pinned Locked Moved SketchUp Discussions
    sketchup
    1 Posts 1 Posters 41 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