
Light Switch Script
- Item name
- Light Switch Script
- Category
- Scripts
- Sold by
- MorganeParis
- Min. resale price
- 100
- Listed
- 2/7/2026
Description
Version 1.4.2 Smart and synchronized control for lights and materials. MPP – LightSwitch is an advanced lighting control system for Sansar that allows creators to manage lights and emissive materials with precision, synchronization, and smooth transitions. More than a simple on/off switch, this script can coordinate entire lighting systems across multiple objects using ScriptEvents, chat commands, and interactive clicks. Perfect for immersive environments such as interactive buildings, stage lighting, sci-fi environments, or synchronized ambient scenes. ________________________________________ Key Features Light control • Toggle one or multiple LightComponents • Control relative intensity and color • Smooth interpolated transitions Material control • Adjust Emissive Intensity (shader dependent) • Modify Tint on compatible materials • Fully synchronized with lights Group synchronization • Synchronize multiple lamps or objects using ScriptEvents • Perfect for large lighting systems • Ideal for stage lighting or multi-room environments Chat commands • Control lights using Nearby chat or a custom channel • Examples: /lamp on, /lamp off, /lamp toggle • Optional group targeting External script control • Supports ScriptEvents from other scripts • Compatible with MPP – ActionButton and other automation systems • Allows full integration into interactive gameplay systems Access control • Optional whitelist or blacklist by avatar name • Security applies to both click and chat actions ________________________________________ Technical Details • Supports multiple LightComponents per object • Shared transition system for lights and materials • Smooth interpolation modes (Linear, Smoothstep, EaseIn, EaseOut, Step) • External ScriptEvent system for advanced automation • Optimized and clean script architecture ________________________________________ Example Use Cases • Interactive lamps • Building lighting systems • Stage and concert lighting • Sci-fi control panels • Fully synchronized ambient lighting ________________________________________ MPP – LightSwitch is designed for creators who want professional, immersive, and scalable lighting control in their Sansar experiences. ________________________________________ Changelog — Version 1.4.2 • Added external ScriptEvent support allowing other scripts to control lights. • Added compatibility with MPP – ActionButton and other event-based systems. • Improved group synchronization system for multi-lamp setups. • Added additional external event patterns for group and global control. • Improved transition handling and interpolation stability. • Internal code optimization and cleanup. ________________________________________ Enjoy and Keep Good Vibes. Hugs from Morgane. ________________________________________