From 87a641981ff1b8a0f6fba043f47ebea64b5231c3 Mon Sep 17 00:00:00 2001 From: bobzel Date: Fri, 10 Nov 2023 18:41:02 -0500 Subject: fixed animation timeline to not fade in/out the collection. fixed keyframe animator to interpolate colors. --- src/client/views/global/globalScripts.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/client/views/global') diff --git a/src/client/views/global/globalScripts.ts b/src/client/views/global/globalScripts.ts index 8c49dc6ea..d2df58102 100644 --- a/src/client/views/global/globalScripts.ts +++ b/src/client/views/global/globalScripts.ts @@ -53,7 +53,7 @@ ScriptingGlobals.add(function setBackgroundColor(color?: string, checkResult?: b const contentFrameNumber = Cast(dv.rootDoc?._currentFrame, 'number', layoutFrameNumber ?? null); // frame number that content is at which determines what content is displayed if (contentFrameNumber !== undefined) { const obj: { [key: string]: Opt } = {}; - obj[fieldKey as any] = color; + obj[fieldKey] = color; CollectionFreeFormDocumentView.setStringValues(contentFrameNumber, dv.rootDoc, obj); } else { dv.rootDoc['_' + fieldKey] = color; -- cgit v1.2.3-70-g09d2