Project expression errors - undefined value
First timer here and I appreciate anyone's time to help educate me a bit. I have an older aep file that the expressions are erroring out. I admit, I know absolutely zero about expressions in AE, I'm an extreme novice here. Below are the two expressions, I would welcome any direction/guidance on how to resolve these issues:
EXPRESSION ONE:
x = Math.round(effect("Camera Angle")("Slider"))
Error: Undefined value used in expression (could be an out of range array subscript?)
if (x > 6) {
6
}
if (x < 1) {
1
}
EXPRESSION TWO:
x = Math.round(effect("Scene Setup")("Slider"))
Error: Undefined value used in expression (could be an out of range array subscript?)
if (x > 4) {
4
}
if (x < 1) {
1
}
If more context is needed to resolve the issue, I will try to provide what I can - the use case is that it shifts the camera point of view around 6 different positions, from zoomed out , zoomed in, and zoomed into the four corners of the screen. Not sure if that helps or not.
Again your feedback and guidance is appreciated.
