integer SCULPT_TYPE = PRIM_SCULPT_TYPE_PLANE; string DEFAULT_SCULPTMAP = "121ceceb-0b18-905e-e29f-16e95187f95d"; // apple default { state_entry() { string sculptTexture = DEFAULT_SCULPTMAP; list primType = llGetPrimitiveParams( [PRIM_TYPE] ); if (PRIM_TYPE_SCULPT == llList2Integer(primType, 0) ) { sculptTexture = llList2String(primType, 1 ); } llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_SCULPT, sculptTexture, SCULPT_TYPE] ); // llRemoveInventory(llGetScriptName()); } touch_start(integer total_number) { string sculptTexture = DEFAULT_SCULPTMAP; list primType = llGetPrimitiveParams( [PRIM_TYPE] ); if (PRIM_TYPE_SCULPT == llList2Integer(primType, 0) ) { sculptTexture = llList2String(primType, 1 ); } llSetPrimitiveParams( [PRIM_TYPE, PRIM_TYPE_SCULPT, sculptTexture, SCULPT_TYPE] ); } }