Space Engineers

Space Engineers

72 ratings
Mikr-Smooth Color Transition
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
43.131 KB
31 Mar, 2020 @ 10:12am
26 Sep, 2021 @ 8:25am
5 Change Notes ( view )

Subscribe to download
Mikr-Smooth Color Transition

Description
The Script now works with LCDs. Multiple LCDs don't update their color at the same time because that's just how lcds work in Space Engineers


I searched for a Script that lets me do this. I found one but it was old and lacking features. So I made this.
This lets you set up smooth color transitions for your lights


First:
After you are done changing whatever it is that you want to change run the Script with "updategroups" or "updatecolors" .... im gonna leave it to your imagination which one updates what.

Also.. before you contact me and say it doesn't work, run it with the argument "updategroups".

Now the Instructions:
Put this in a programmable block
Add the tag "[MSCM]" to the name of the group
In ANY light in the group add to the Description:
For transition presets write:

colors [the name of the preset (eg: RGBsimple)]

for example:

colors RGBsimple

For custom transition write:

"colors" in the first line
each line after that is one color in the transition. Format it the following way: "([r], [g], [b])"

For example if you want a simple two color transition (lets say red and blue) do the following:
colors (255,0,0) (0,0,255)

Now run it with the argument "updategroups"

Notes
Nothing is case sensitive
If your lights stay black its because it can't read the colors, which means either you didn't do it yet or you did it incorrectly
If you change the colors after you ran it with updategroups you need to run it with updatecolors

IMPORTANT: no spaces

If you can't figure it out message me on Discord

Custom Timing
If you want the script to idle for a bit when it get to a color or if you want to change the speed of the animation you can do that as of version 0.9.1

simply add brackets after "colors" and do "colors([Updates],[IdlePercentage])"
Updates is how many updates it takes to get from one color to the next(one update is 1/60th of a second)
IdlePercentage is how many of those updates it idles
Updates is an int(whole number)
IdlePercentage is a number between 0 and 1 (so if you don't know 50% = 0.5)

for example:
colors(60,0.1) (255,0,0) (0,0,255)

In this example i have chosen 60 updates (so one second) and 10% of those (or 6 updates) it will idle

If you mess anything up in this part it will use the default values which are 60 frames and 0%


Join my discord if:
  • You want to be informed of new scripts to test (i make my scripts available on pastebin if they aren't ready for the workshop yet)
  • You want to hear about script updates
  • Want to ask me to make Scripts (yes i do that)
  • Want to suggest changes to my scripts
  • Want a quick reply to your question/problem (I can be offline for days on steam)
https://discord.gg/psXq4bK
Or dm me: mik #3030


Stellar Compass : Coming soon
Speedometer MK2 : Coming soon, available on my discord
Instrument Panel Ground Edition
Instrument Panel Aircraft Edition
Planetary Compass
16 Comments
Ender 7 Mar, 2023 @ 9:04pm 
"In ANY light in the group add to the Description:"

?? When I click on a light within my group, I don't see any field labled "description"

I've assumed you mean Custom Data. But now I'm confused as I updated groups and colors to no avail. I am doing something wrong. Or I don't know where to enter in a description lol
LettuceSupreme (Nitron X) 4 Oct, 2021 @ 3:58pm 
Thank you@!@!!!!!!!!!
mikr  [author] 26 Sep, 2021 @ 8:34am 
done
LettuceSupreme (Nitron X) 8 Sep, 2021 @ 12:20am 
Hey, would it be possible to update this to also change the rgb values for lcd panels? I run into situations where they're better than lights for my uses (especially the transparent lcd panel).
Gryphorim 15 Apr, 2020 @ 2:43pm 
yeah, that's reasonable. I just wanted to see how far I could push this script.
mikr  [author] 15 Apr, 2020 @ 9:30am 
Gryphorim it failed because the thrusters aren't lights

Sounds stupid but the script looks for any block of the type IMyLightningBlock and thrusters arent lights
Gryphorim 12 Apr, 2020 @ 2:41pm 
I tried to use this in conjunction with custom thruster colours. No good. I think it failed because the thrusters have 2 colours to set each (idle and full power), Havent tried with custom emissives, but predicting a similar result.
mikr  [author] 12 Apr, 2020 @ 9:21am 
Celestite, making scripts obviously.
Effenheimer done
seronis ill probably add that
seronis 7 Apr, 2020 @ 3:39am 
You might consider having the script internally track the colors as HSV instead of RGB so that the transitions are smoother and its easier to maintain consistent brightness levels
⎝⧹Greedynuf⧸⎠ 6 Apr, 2020 @ 4:47pm 
Nice