javascript - 后效应 : Javascript - Undefined value used in the expression(Could be out of range array subscript)

标签 javascript undefined after-effects

无论如何,我不是程序员。我是一名动画师,试图在 After Effects 中使用 JS 表达式。我在定义变量的第 1 行收到“表达式中使用的未定义值”错误。我已经在 discord 上向我的 cs 专业 friend 展示了它,但他不知道它有什么问题。

enter image description here
如果您需要,这里只是粘贴代码:

var count = 1;

if (framesToTime(time) % 12 == 0) {
count = count + 1

    if (count % 2 == 0){
        thisProperty = 95
    } else {
    thisProperty = 20
    };
} ;

最佳答案

好吧,我不知道为什么要修复它,但是我将变量的名称从“count”更改为“x”,现在它可以工作了。去搞清楚

关于javascript - 后效应 : Javascript - Undefined value used in the expression(Could be out of range array subscript),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61761953/

相关文章:

javascript - 从函数中取出 var

javascript - 如何在 Angularjs 中重置过滤器

javascript - 将对象数组转换为对象

javascript - React Native - 不变违规 : Element type is invalid: expected string but got: undefiend

javascript - 在 JS 中明确定义时获取 "method undefined"

JavaScript ChildNodes 未定义类型错误?

javascript - AE面板: Send obj from JS to JSX

extendscript - 通过脚本获取 sourceText 值

javascript - 在 Adob​​e Brackets IDE 中使用 javascript 库?

javascript - 使用 ExtendScript 访问内部预合成层