Random Name Chooser
-
I was at a tradeshow a couple of days ago where we used a scanner to scan people's names in for a drawing later that day. It had an SD card in it and I wondered if the file would be a simple text file with csv delimitting and it turned out it was. I then wondered if I could use sketchup to program a random name drawing system based off that text file. A few minutes of programming later, there it was.
It flashes name after naming while slowing down just like a spinning wheel using exponentially growing delays and beeps to build the suspense.
I couldn't find a command to select all and delete all so I have lame loop that keeps deleting top level entities until there aren't any so the next name can be displayed:
Sketchup.active_model.entities.each {|yo| yo.erase!} while Sketchup.active_model.entities.length != 0
Anyhow, it's attached if anyone can use it. I'm sure it can be optimized quite a bit. Wonder if sketchup's ever been used like this before...
Advertisement