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!
    🚨 Skimp | 25% Off until March 30 Buy Now

    Ruby Challenge!

    Scheduled Pinned Locked Moved Developers' Forum
    26 Posts 8 Posters 3.6k Views 8 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
      Jim
      last edited by

      @tig said:

      Tweaking Jim's..

      i=0;Dir["/*/Media/*v"].map{|f|UI.play_sound f;p i+=1,f;sleep 3}
      

      That would be 63... AND it only plays wav files, not falling over on midi's etc... (62 otherwise)

      Alright TIG!

      A note about using Dir[""]: I didn't specify a file ending because I have files that end in .WAV. These files do not get played because they end in capital letters. The shortest way to get ALL the files was o use *.

      Hi

      1 Reply Last reply Reply Quote 0
      • R Offline
        RickW
        last edited by

        hmm... the last two solutions won't play on my machine.

        RickW
        www.smustard.com

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

          @rickw said:

          hmm... the last two solutions won't play on my machine.

          Both work for me.

          Hi

          1 Reply Last reply Reply Quote 0
          • romboutR Offline
            rombout
            last edited by

            interesting this stuff does anyone know how to stop a file from playing in UI

            1 Reply Last reply Reply Quote 0
            • M Offline
              morisdov
              last edited by

              rombout look here - stopping UI.play_sound ? -
              http://www.sketchucation.com/forums/scf/viewtopic.php?f=180&t=10352&p=68452#p68452

              1 Reply Last reply Reply Quote 0
              • romboutR Offline
                rombout
                last edited by

                yeah i already knew that one. But thanx anyway, did you already found different solution

                1 Reply Last reply Reply Quote 0

                Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                With your input, this post could be even better 💗

                Register Login
                • 1
                • 2
                • 2 / 2
                • First post
                  Last post
                Buy SketchPlus
                Buy SUbD
                Buy WrapR
                Buy eBook
                Buy Modelur
                Buy Vertex Tools
                Buy SketchCuisine
                Buy FormFonts

                Advertisement