// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // UV coordinate finder // Not compiled or tested in-world // Setup: Put in the textured prim and touch points on its surface. Read owner chat while planning an atlas or clickable panel. // Stop / restore: Remove or disable; no prim property is changed. // Notes: UV uses texture coordinates after face transforms; ST uses surface coordinates. Unsupported touch data returns an invalid vector. // License: see LICENSE in this distribution. // Original Incoprea example. MIT. Not compiled or tested in-world. default { touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; integer face = llDetectedTouchFace(0); if (face < 0) { llOwnerSay("This touch did not provide face coordinates."); return; } llOwnerSay("Face " + (string)face + " | UV " + (string)llDetectedTouchUV(0) + " | ST " + (string)llDetectedTouchST(0)); } }