// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Inspect a touched face // Not compiled or tested in-world // Setup: Put in the inspected prim. Touch one of its faces as owner; in a linkset the touched prim must contain this script. // Stop / restore: Remove or disable the script. It does not change the build. // Notes: Reports legacy/base texture settings. It does not inspect PBR material parameters. Texture UUID visibility depends on permissions. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. default { touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; integer ownLink = llGetLinkNumber(); integer touchedLink = llDetectedLinkNumber(0); if (ownLink > 0 && touchedLink != ownLink) { llOwnerSay("Touch the prim containing this script."); return; } integer face = llDetectedTouchFace(0); if (face == TOUCH_INVALID_FACE) { llOwnerSay("The viewer did not provide a face."); return; } list p = llGetPrimitiveParams([PRIM_TEXTURE, face]); llOwnerSay("Face " + (string)face + ": " + llList2CSV(p)); } changed(integer flags) { if (flags & CHANGED_OWNER) llResetScript(); } }