2015-03-27

Quick steps maker

While contemplating an upcoming build the other day the idea for this script popped into my head and, having thought of it, I had to knock it together quickly. Like a few other scripts I've put on here this stems from my use of Mesh Studio, where I'll make mesh objects in-world from lots of prims. This time around I wanted to make some simple stairs.

I've done this before and it's easy enough: rez and size a prim, copy it, move it to the next spot, copy, move to the next spot, and so on. But it'd be easier done with a script, right?

So the Z&A Quick Steps Maker was born. With this you simply rez out as many cubes as you want steps:


Link all the cubes and drop the script into the root prim. When you do so it'll texture the "top" face of the root so you know what direction the stairs will build in.


Next, size the root prim to the size of a step.


Once you're happy with it, touch the linkset and...



...the steps build themselves. If it doesn't quite look right all you need to do is resize the root prim to taste...


...and touch again to have the stairs rebuild:


Of course, a far more sophisticated system could be made where an object rezzes other objects out, building the stairs for you dynamically (could be something like that even exists -- I've not bothered to look), but that wasn't the point of this script. The point here was to knock up something that works quickly and easily for those times where you know what it is you're doing but you just want to save some fingerwork. It also means that there's no need to consider things like the grey-goo fence as it's you making all the prims up front.

Anyway, on the off chance that it's useful to anyone else, here's the script:


No comments:

Post a Comment