Skip to content

Instantly share code, notes, and snippets.

@antonyfairport
antonyfairport / Z&A Mesh Info.lsl
Created April 3, 2015 09:12
Show some simple information about LOD switching distances for a given mesh object.
//////////////////////////////////////////////////////////////////////
// Z&A Mesh Info
// By Antony Fairport
//
// Z&A Mesh Info - Simple tool to help figure how when LOD switches
// happen. Based on the information made available via an article in
// http://en.calameo.com/read/000004234610f002a5334 and, from that, in
// http://wiki.secondlife.com/wiki/Mesh/Mesh_Streaming_Cost
//
// Revision history:
//////////////////////////////////////////////////////////////////////
// Z&A Quick Steps Maker
// By Antony Fairport
//
// Z&A Quick Steps Maker - Quickly make steps from a linkset of prims.
//
// While a more sophisticated stair maker can be made that would rez objects
// as it goes, sometimes you just want to create a linkset and have it all
// size and position correctly. This script does that. Here's how it works:
//
@antonyfairport
antonyfairport / RLV REPL.lsl
Created March 9, 2015 17:04
Quick and dirty RLV command line. Drop in a prim, touch to turn on, say RLV commands in local.
//////////////////////////////////////////////////////////////////////
// RLV REPL
// By Antony Fairport
//
// RLV REPL - Quick and dirty "REPL" for testing RLV commands.
//
// Revision history:
// ------------------------------------------------------------
//
// 2015-03-09
@antonyfairport
antonyfairport / Z&A Show Face Numbers.lsl
Last active August 29, 2015 14:15
Simple script to texture an object to show face numbers.
//////////////////////////////////////////////////////////////////////
// Z&A Show Face Numbers
// By Antony Fairport
//
// Z&A Show Face Numbers - Quickly show face numbers on an object.
//
// Revision history:
// ------------------------------------------------------------
//
// 2015-02-19
@antonyfairport
antonyfairport / Force Sit Test.lsl
Created January 2, 2015 11:04
RLV force sit vs obscured objects tester
default
{
touch_start( integer _ )
{
integer iPrim = llDetectedLinkNumber( 0 );
string sPrim = llGetLinkName( iPrim );
if ( sPrim != "Force Sit" )
{
key kToucher = llDetectedKey( 0 );
@antonyfairport
antonyfairport / Z&A Shuffle Texture Offsets.lsl
Created December 27, 2014 12:43
Shuffle the offsets of textures on all similar faces in a linkset
//////////////////////////////////////////////////////////////////////
// Z&A Shuffle Texture offsets
// By Antony Fairport
//
// Z&A Shuffle Texture Offsets - Randomly shuffle offsets in textutes.
//
// Revision history:
// ------------------------------------------------------------
//
// 2014-12-27
@antonyfairport
antonyfairport / RemoveAllTextures.lsl
Created November 3, 2014 16:33
Remove textures from an object's ivnentory
CleanTextures()
{
integer iMax = llGetInventoryNumber( INVENTORY_TEXTURE );
integer i;
for ( i = ( iMax - 1 ); i >= 0; i-- )
{
llRemoveInventory( llGetInventoryName( INVENTORY_TEXTURE, i ) );
}
}
@antonyfairport
antonyfairport / Z&A Particle Hologram.lsl
Created September 9, 2014 14:42
Particle "Hologram"
vector IMAGE_SIZE = < 1.0, 1.0, 1.0 >;
default
{
state_entry()
{
// Look for an image in inventory.
string sImage = llGetInventoryName( INVENTORY_TEXTURE, 0 );
// Got one?
@antonyfairport
antonyfairport / Find Unique Textures.lsl
Last active August 29, 2015 14:05
Little tool to help find textures and tints that would result in a material face in the likes of Mesh Studio.
//////////////////////////////////////////////////////////////////////
// Z&A Unique Texture Lister
// By Antony Fairport
//
// Z&A List Unique Textures - Find the first instance of the use of
// a texture and tint combination in a linkset. Handy little tool to
// help hunt down any material face confusion when using something like
// Mesh Studio.
//
// Revision history:
//////////////////////////////////////////////////////////////////////
// Set your app and user token here. Note that you can, on the
// PushOver site, create delivery groups so you can deliver a single
// notice to multiple users. The delivery group key is then used as
// the user key.
string APP_TOKEN = "<paste your app token here>";
string APP_USER = "<paste your user token here>";
//////////////////////////////////////////////////////////////////////
// Constants for the PushOver parameters.