Light Interpolation / on / off | Sansar Store
Light Interpolation / on / off

Light Interpolation / on / off

FREE

You need to own this item to leave a rating.

0 ratings

Want to have a light source change smoothly between up to 9 colors, be able to turn it off and on, and start / stop it? This is your answer.

settings:

change duration: seconds it taken to get from one color to the next. Anything less that 1 second will be seizure inducing, don't do that.

pause before change: how long to stay on one color before starting to change to the next

chat command: the command you'll say to deliver commands to the light. if you have multiple lights, set a different chat command to change them individually. or, leave it the same to control them all with one command. defaults to '/light'

Second color - Eighth color: pick the colors you want to change between. The first color is the original light color.

If you want to only use a few of the color slots, leave the ones you dont want empty, as in a value of 0 for everything. That slot will be ignored.
ie: R: 0 B: 0 G: 0 A: 0

If you want to iterate through an "off" phase, set the color to black. it'll look like the light turned off.

commands:
/<chat command> stop : stops the interpolation
/<chat command> start : re-starts the interpolation
/<chat command> off : turns the light off
/<chat command> on : turns the light on again

To Use: drop a point or spotlight into your scene, get it set up how you want with the color, range, intensity, casts shadows, etc. Turn the "scriptable" param on. Drop this script into it. Set the parameters how you want them. save, build, visit. Control+D to see debugging info.

feature requests, bugs, questions? go here: https://tree.taiga.io/project/nebulae-sansar-scripts/wiki/home
please use your sansar name so I know who it's coming from : )

enjoy!
~neb

Item name
LightInterpolation
Sold by