Example Scripts


Some small scripts to get you started on common tasks

While these scripts are functional, they are merely examples of some basic functionality, to serve as demonstration of some common techniques and functions, and a springboard to make your own version.

Crazy compact notations

Usually, it's not worth the tradeoff in readability to do really compact notations, but sometimes something needs to spin in tight loops, and in those cases optimizing it may be good style. (Though practically, it really rarely is the sheer number crunching in the script which causes any noticeable performance impact. Still...)

Viewer 2's Shared Media

JSONP/DHTML tricks to get around the fact that a prim is only allowed to serve text.