-
Array piece can’t expand to more than one value Error, please heelp!
I am trying to follow an AE tutorial to learn code from zero, at the exercise in minute 30, we need to make a circle (elipse path) color red if the X Position value is greater than 960, but the code i am copying from the video is not working giving me that error, i would appreciate any help for this beginner, here is my code:
- var red = [215,68,63,255] / 255;
- var black = [51,58,55,255] / 255;
- if(transform.xPosition > 960) [
red
]
else [black] I am using AE version 2023, and the tutorial is from 2021, i don’t know if that has anything to do with this issue.
Here is the link to the tutorial: https://www.youtube.com/watch?v=Knp2S_gs-Rc