MPP Scripts for Sansar
Scripts by My Pretty Pixels for Sansar creators. Each card opens the online documentation of the script, and its page on the Sansar Store.
-
MPP - Action Button
Turn any object into a button: 1 to 4 commands sent as chat text or script events, activation by click or collision, cycling states with their own color and glow, click sound and remote control. New in V1.7: a private "please wait" notice and access by permission mode (owner only, owner + whitelist, everyone except a blacklist); V1.7.1 groups the settings by category.
-
MPP - Auto Megaphone Package
Automatic Megaphone control: on when visitors arrive, on stage zones, off in silent rooms, or from Action Button events. One Policy script decides who and when, unlimited Zone trigger volumes ask for changes. New in V1.5: the latest request always wins, one summary for the "all on / all off" buttons, and lists by avatar handle.
-
MPP - Avatar Speed Package
Change how fast avatars move: chat commands (/speedup, /speeddown, /speedreset, /speedset), speed zones they walk into, or Action Button events; for each visitor or for everyone with an access control; timed boosts, sounds, help command. New in V1.3: the speed stays inside the range Sansar really applies, a private "please wait" message, and zones that react without delay.
-
MPP - Commands Help On Chat
Show your scene commands in Nearby Chat when a visitor types /CommandsHelp or clicks a help button: the built-in Sansar commands, your own help, or both, posted to everyone or whispered in private. It can also greet arriving visitors by name, handle or profile link. New in V1.5: an arrival sound and a script event at each arrival and departure, to trigger your lamps or your own scripts; Sansar NPCs are ignored unless you want them greeted.
-
MPP - Day and Night Sky Cycle
A complete day and night cycle, ready to use: a sun that follows the real path of the sun for the place and the date you choose, with legal time and time zones, a sky dome with stars and clouds, a 9-button desk for your visitors, and a scheduler that switches your lamps and talks in the nearby chat.
Documentation Coming soon on the Store -
MPP - Emissive Color Cycle
Cycles the glow color of one, several or all materials of an object through three colors of your choice, over a cycle of a tenth of a second to ten minutes: neon signs, sci-fi props, portals, shop displays. V1.2.2 writes a material only when its color really changes (about four times fewer writes with the default cycle), follows the real elapsed time and reports its write rate with Debug Logging.
-
MPP - Gravity Drift On Grab
Turns a prop into a helium balloon: the first grab ramps its gravity to a negative value so it floats up once released, with a speed limit, a ceiling and XYZ bounds that freeze (and hide) it, and a smooth realign of its rotation on each release. New in V1.8: a grab during the realign stops it cleanly, a frozen object never comes back to physics, far fewer physics writes, warnings for settings that would freeze the object at once, and a Debug Logging switch.
-
MPP - Light Drain And Restore
A theatrical effect for a lamp or a prop your visitors pick up: while the object is held, its light slowly dims and a smooth rainbow runs through the light and the glowing materials; on release, the light comes back and the color returns to white, or stays on the color picked. New in V1.8: no more light writes at rest, anti-flicker thresholds on the light, a working Debug Logging switch and warnings for a wrong setup.
-
MPP - Light Switch
Switch lights and glowing materials on and off with smooth fades: by click, by chat command, in sync with a whole group of lamps, or from Day Night and Action Button. New in V1.5: one anti-spam cooldown for every source (the last command is never lost), access by permission mode (owner only, whitelist or blacklist) and, since V1.5.3, a transition mode chosen by a number.
-
MPP - Open Creator Store
Opens a creator's Sansar Store page from your scene: enter the creator handle, a click opens their store for the visitor, with an optional click sound. New in V1.1: a leading @ is ignored, a wrong-looking handle gets a warning, an empty handle leaves the object without a dead button, and a silent anti double-click.
-
MPP - Random Object Spawner
Makes one random object from your list appear when a visitor clicks, every few minutes on its own, or from an Action Button: fixed spot or random radius, a maximum of active objects (the oldest replaced first), cleanup command and event, sounds. New in V1.5: access by permission mode with a private "not allowed" message, an Enable Click switch, and a cleanup command that follows the permissions.
-
MPP - Rotator
Turns the object it is on around X, Y and/or Z, around its own axes or the world axes: without end, or by a set number of degrees per axis, one way, there and back, or back and forth with a pause at each end. Starts at scene load, by click, by touch or by Script Events from an Action Button, and posts its own events when it starts, stops and reaches each end of the path. First release on the Store.
-
MPP - Scene Info Viewer
Shows your visitors what is going on in your scene, by click, chat command or Action Button: name, visitor count, gravity, uptime, their visit time, plus Sansar's details window of the scene. A technical debug report stays reserved to you and the avatars you allow, with a per-visitor cooldown and a "please wait" message. First release on the Store.
-
MPP - Send Website To Chat
Sends a website link to the visitor who clicks, as a private line in their Nearby Chat, with an optional click sound: your site, your store, your social page, one click away. New in V1.1: a hover text setting, the link checked at start (an invalid link gives no click and no error to visitors), and a silent anti double-click.
-
MPP - Sound States On Grab
Gives a prop three sound states: a base sound while nobody holds it, a held sound while a visitor carries it, and a release sound when they let go, played once or looped until the base sound comes back; the sounds follow the object. V1.1.2: a quick release and grab keeps the timing right, a volume of 0 is really silent, warnings for a wrong setup and a Debug Logging switch.
-
MPP - Store Listing Opener
Turns any object into a direct link to a Sansar Store listing: paste the listing link or its UUID, a click opens the Store panel for the visitor, or an Action Button does it from a control desk, with an optional sound. New in V1.3: a per-visitor cooldown with a private "please wait" message, the listing opened before the sound, and a clear warning when the link is not usable.
-
MPP - Teleport Hybrid Pro
Teleport your visitors to another experience or to a spot in your scene, by click or by walking into a volume: Yes/No confirmation popup, countdown sound, delay before the jump. New in V1.8: every visitor has their own flow (nobody blocks the others) and a per-visitor cooldown with a private "please wait" message.