// SPDX-License-Identifier: MIT // Copyright (c) 2026 Incoprea // Uniform child size preview // Not compiled or tested in-world // Setup: Put in a small nonphysical child prim. Verify there are no seated avatars or tight collision clearances. // Stop / restore: Owner-touch again to restore the startup snapshot before removing or resetting. A reset while previewing loses the original snapshot. // Notes: Use a small nonphysical rezzed build with room around it. This changes real geometry, not just a viewer effect. Restore before reset, relink, or removal; a script-memory snapshot is not a permanent backup. Simulator size limits may clamp the requested scale. The prim center stays fixed. // License: see LICENSE in this distribution. // Original Incoprea. MIT. Not compiled or tested in-world. integer preview; list saved; default { state_entry() { saved = llGetLinkPrimitiveParams(LINK_THIS, [PRIM_SIZE]); } touch_start(integer count) { if (llDetectedKey(0) != llGetOwner()) return; if(llGetLinkNumber()<2||llGetStatus(STATUS_PHYSICS))return; preview = !preview; if (preview) { llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_SIZE,llList2Vector(saved,0)*1.2]); } else { llSetLinkPrimitiveParamsFast(LINK_THIS,[PRIM_SIZE]+saved); llOwnerSay("Original setting restored."); } } }