// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Face transparency loupe // Not compiled or tested in-world // Setup: Put in a spare prim. Menu lists up to nine face numbers; selecting another restores the previous face. Restore unhides the selected face. // Stop / restore: Use the Restore or Home action described in setup before removing or resetting if you want the startup appearance. Menu listeners expire after 45 seconds. // Notes: Local owner-only control. Saved snapshots live in script memory and are lost on reset. This is only a visual inspection tool and never changes collisions. It restores saved per-face alpha, not PBR alpha modes. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. integer channel; integer handle; close() { if(handle)llListenRemove(handle); handle=0; llSetTimerEvent(0.0); } menu(string prompt,list buttons) { if(!handle) { channel=-1000-(integer)llFrand(1000000.0); handle=llListen(channel,"",llGetOwner(),""); } llDialog(llGetOwner(),prompt,buttons,channel); llSetTimerEvent(45.0); } list alpha; integer selected=-1; init() { integer i; for(i=0;i=0)llSetAlpha(llList2Float(alpha,selected),selected); selected=-1; show(); return; } integer i=llListFindList(["0","1","2","3","4","5","6","7","8"],[s]); if(i<0||i>=llGetListLength(alpha))return; if(selected>=0)llSetAlpha(llList2Float(alpha,selected),selected); selected=i; llSetAlpha(0.0,selected); show(); } default { state_entry() { init(); } touch_start(integer n) { if(llDetectedKey(0)!=llGetOwner())return; close(); show(); } listen(integer ch,string name,key id,string message) { if(!handle||ch!=channel||id!=llGetOwner())return; choose(message); } timer() { close(); } changed(integer change) { if(change&CHANGED_OWNER)llResetScript(); } }