public static void Update() { string curr = "Animations/Key.chroma"; ChromaAnimationAPI.CloseAnimationName(curr); for (int i = 0; i < 127; i++) { try { ChromaAnimationAPI.SetKeyColorAllFramesRGBName(curr, (int)chromaKeys[i], rValue[i], gValue[i], bValue[i]); } catch { } } ChromaAnimationAPI.PlayAnimationName(curr, true); }