无论如何,我不是程序员。我是一名动画师,试图在 After Effects 中使用 JS 表达式。我在定义变量的第 1 行收到“表达式中使用的未定义值”错误。我已经在 discord 上向我的 cs 专业 friend 展示了它,但他不知道它有什么问题。
如果您需要,这里只是粘贴代码:
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/