Blade Style Weirdness - What Have I Missed?

Just setting up a Kestis swing colour change preset. In Style Editor it works fine, but bizarrely when I load it onto a hilt and do the swing change, it only displays every second colour.

So although the preset lists:

Green, Orange, DeepSkyBlue, Magenta, Yellow, Blue etc.

all I get is

Green, DeepSkyBlue, Yellow etc.

It must be some silly little thing I’ve missed/included wrongly - I just can’t for the life of me find it.

Any chance any bladestyle gurus here can take a quick look with fresh eyes and see where I’ve gone wrong?

Thanks in advance. :folded_hands:

StylePtr<Layers<
Layers<
ColorSelect<ModF<AltF,Int<10>>,TrFade<300>,Green,Orange,DeepSkyBlue,Magenta,Yellow,Blue,Red,Cyan,Pink,Azure>,
ColorSelect<ModF<AltF,Int<10>>,TrFade<300>,RandomL<Rgb<0,125,0>>,RandomL<Rgb<125,50,0>>,RandomL<Rgb<0,75,125>>,RandomL<Rgb<125,0,125>>,RandomL<Rgb<125,125,0>>,RandomL<Rgb<0,0,125>>,RandomL<Rgb<125,0,0>>,RandomL<Rgb<0,125,125>>,RandomL<Rgb<125,65,75>>,RandomL<Rgb<110,125,125>>>,
TransitionEffectL<TrDoEffectX<TrInstant,EFFECT_ALT_SOUND,ModF<Sum<AltF,Int<1>>,Int<10>>>,EFFECT_USER1>,
OriginalBlastL,
LockupL<Strobe<Azure,Black,20,16>,Strobe<White,Black,20,16>>,
ResponsiveMeltL<Mix<TwistAngle<>,Red,Yellow>,TrInstant,TrInstant>,
SimpleClashL<Strobe<White,Black,28,25>,260>,
InOutTrL<TrWipe<500>,TrWipeInX<WavLen<EFFECT_RETRACTION>>>,
TransitionEffectL<TrConcat<TrWipe<1000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrDelay<2000>,AlphaL<Mix<BatteryLevel,Red,Green>,SmoothStep<BatteryLevel,Int<-10>>>,TrWipeIn<1000>>,EFFECT_BATTERY_LEVEL>>>>>()

I don’t see any code related to a “swing change”

You shouldn’t need ModF<> in ColorSelect, it’s not calculating AltF at this point, the AltF would be calculated/changed elsewhere. Don’t think that would cause issue but it isn’t the way to use the function.

1 Like