This Mood Lighting Orb package gives you a polished, ready-to-deploy lighting system for Second Life: a root prim script that provides a simple menu (and double-tap cycling) plus a lightweight child prim script that performs the actual lighting effects. Drop the root script in the orb’s root prim and the child script in each lamp/inserted light prim. Link the prims, set your ownership and permissions, and you’ll have a compact, robust mood lighting system that’s easy for customers and guests to use — no HUD, no external listeners, and no confusing setup.
Here’s the practical problem this solves: venue owners and creators often want atmospheric lights that can switch presets quickly without complicated installer steps or heavy resource usage. Most marketplace items either expose a bloated HUD or rely on noisy public chat and region listeners that create lag and permissions headaches. This orb uses local link messages and llSetPrimitiveParams for glow/fullbright so the visuals are consistent and low-latency, and everything operates inside the linked object. The result: predictable behavior, low script impact, and a user interface even non-technical people understand.
What you get in the pack:
A root (menu) script that opens a private dialog on touch with buttons for Romantic, Party, Fantasy, Off, Cycle, and Close. The root also supports double-tap cycling (fast tap = next preset) for quick interaction during live events. The menu runs on a private channel so only the toucher can choose options.
A child (light) script designed for each light prim. It listens to link messages from the root and applies colors, glow levels, and fullbright via primitive params. Party mode uses a short timer to auto-cycle random colors; Romantic and Fantasy apply stable, themed color/glow settings.
Cleanly commented code so you or buyers can tweak BPM, glow, duration, color palettes, or access control quickly.
Lightweight architecture: the child scripts only act on link messages and a brief timer, keeping server load low and making the system scalable across many child prims.
Why it matters for venue owners and creators:
Ease of use: No separate HUD, no estate or region dependency. Staff or guests can change moods with a simple touch or a double-tap.
Visual consistency: Using PRIM_GLOW and PRIM_FULLBRIGHT via llSetPrimitiveParams ensures the effect looks similar across viewers while remaining efficient.
Performance: Single controller + lightweight children means you can add many lights without high script time — suitable for stages, chandeliers, dancefloors, and decorative orbs.
Customizable: Change palettes, glow intensity, or add new presets with minimal editing. The code is modular and documented.
Deployment checklist — quick and reliable:
Link your prims, make sure the script you intend as root is in the root prim.
Drop the root script into the root prim and the child script into each child prim.
If you want owner-only control, flip the boolean at the top of the root script.
Touch the orb to open the private menu, or double-tap to cycle presets immediately.
Test Party mode to confirm auto-color cycling and adjust the interval if you want faster or slower color changes.
Common troubleshooting — fast fixes:
Menu doesn’t respond: Ensure root script is in the root prim and you are allowed to interact (owner-only flag). Restart the script after edits.
Lights don’t change: Confirm child scripts are in child prims (not root) and that prims are linked. The child script only reacts to link messages from the root.
Glow or fullbright seems off: Viewer render settings or materials can affect appearance. Try toggling materials or test on a blank prim. If needed, numeric PRIM constants are included as a fallback in the code for older compilers.
Double-tap not registering: Double-tap relies on a short window. If interactions are too slow due to lag, increase the double-tap window value in the root script.
Use cases and ideas:
Put an orb on a café table set to Romantic for soft, warm tones during evening roleplay.
Use multiple orbs around a dance floor and set them to Party for fast, dynamic color shifts without a HUD.
Place a cluster of orbs in a fantasy garden and set to Fantasy for dreamy violet/teal glow.
Combine with scripted props or furniture for synchronized atmosphere: the root can be modified to broadcast link messages to an entire linked rig.
- Root menu + double-tap cycling: private dialog for presets
- Three themed presets: Romantic (warm/pink), Party (fast random colors), Fantasy
- Child prim lighting: applies colors, PRIM_FULLBRIGHT and PRIM_GLOW
- Lightweight, scalable architecture: single controller with light listeners
- No-Transfer license: sold without transfer to protect creator IP; support







