// :CATEGORY:Prim Animator // :NAME:Archipelis scripts for prim animator // :AUTHOR:Fred Beckhusen (Ferd Frederix) // :CREATED:2013-09-06 // :EDITED:2013-09-18 15:38:48 // :ID:52 // :NUM:76 // :REV:1 // :WORLD:Second Life // :DESCRIPTION: // Archipelis script to replace the buggy one that comes with Archipelis 2.0. // It removes the extra images, leaving behind the one that is needed, and removes itself after making the Archipelis prims // :CODE: // With the courtesy of BestMomo Lagan. // remove extra textures, script, and allow re-linked prim animation by Fred Beckhusen (Ferd Frederix) string generate_index(integer i) { if (i < 10) return "0" + (string)i; return (string)i; } // remove all textures except the one on this prim. clean(string index) { string texture = "texture_" + index; string geometry = "geometry_" + index; integer j = llGetInventoryNumber(INVENTORY_TEXTURE); integer i; for (i=0; i); llSetRot(the_rotation); float the_scale_value = (float)the_scale * 2.0 * 10.0; llSetScale(); string geometry = "geometry_" + index; llSetPrimitiveParams([PRIM_TYPE, PRIM_TYPE_SCULPT, geometry, PRIM_SCULPT_TYPE_SPHERE]); string texture = "texture_" + index; if(llGetInventoryType(texture) != INVENTORY_NONE) llSetTexture(texture, ALL_SIDES); clean(index); // remove all but the necessary textures } }