Battery Level blade?

I’d like to setup a blade where when off it glows with green-yellow-red at the base (like the passive battery monitor, but just all the time rather than on boot/preset) and when on it gives a full blade green-yellow-red bar graph.

Can this be done? I can’t figure a way to do it with Fett’s site.

Even cooler would be if there was a way to have it speak the percentage when switching to this preset.

Choose “Retraction” version of the Passive Battery Monitor.

You’d have to customize the OS and prop to do this.

Just doing on-demand spoken battery level, which already exists, is likely a lot simpler that making it do it on preset change for just that preset.

Not for my kid it isn’t, not really.

Wouldn’t something like this work ?

StylePtr<Layers<Black,
  TransitionEffectL<TrConcat<TrLoop<TrInstant>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>,TrFade<300>>,EFFECT_NEWFONT>,
  TransitionEffectL<TrDoEffect<TrInstant,EFFECT_BATTERY_LEVEL>,EFFECT_NEWFONT>>>()

The font.wav might make it very hard to hear, but possibly.

Yes. I assumed no font.wav or a silence wav.

Now that I re-read your description, I think this is what you mean:
dg4prez_batt_meter

StylePtr<Layers<Black,
  AlphaL<Layers<
    AlphaL<Red,LinearSectionF<Int<5461>,Int<10923>>>,
    AlphaL<Yellow,LinearSectionF<Int<16384>,Int<10923>>>,
    AlphaL<Green,LinearSectionF<Int<27307>,Int<10923>>>>,SmoothStep<Scale<BatteryLevel,Int<0>,Int<35000>>,Int<-1>>>,
  TransitionEffectL<TrDoEffect<TrInstant,EFFECT_BATTERY_LEVEL>,EFFECT_NEWFONT>,
  InOutTrL<TrWipe<300>,TrWipeIn<500>,Layers<
    Black,
    AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>>>>>()

Slightly simpler if a Gradient is ok instead of solid “bars”

StylePtr<Layers<
  Black,
  AlphaL<Gradient<Red,Red,Yellow,Green,Green>,SmoothStep<Scale<BatteryLevel,Int<0>,Int<35000>>,Int<-1>>>,
  TransitionEffectL<TrDoEffect<TrInstant,EFFECT_BATTERY_LEVEL>,EFFECT_NEWFONT>,
  InOutTrL<TrWipe<300>,TrWipeIn<500>,Layers<
    Black,
    AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>>>>>()

Couple things:

  1. That second one is exactly what I had in mind. Thank you so much!

  2. Where has your style editor been all my life? That looks like a more up-to-date version of the old one I was using!

I ended up making an additional style for the npxl emitter for when there’s no blade as well. it’ll go dark when the blade is “on” so as not to interfere with the blade colors.

StylePtr<InOutHelper<Layers<Black,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>>,100,100>>(),

StylePtr<Layers<Black, AlphaL<Gradient<Red,Red,Yellow,Green,Green>,SmoothStep<Scale<BatteryLevel,Int<0>,Int<35000>>,Int<-1>>>,TransitionEffectL<TrDoEffect<TrInstant,EFFECT_BATTERY_LEVEL>,EFFECT_NEWFONT>,InOutTrL<TrWipe<300>,TrWipeIn<500>,Layers<Black,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<IntArg<EMITTER_SIZE_ARG,2000>,Int<-4000>>>>>>>(),

I have been updating the style editor. It started with wanting dark mode and expanded from there. The updates to the official version are happening as Fredrik gets time to review them, but it should be “soon” .

That wasn’t a complaint. I’m saying I love it. If there’s even more coming so much the better!