-
Checkbox controlling 2 different sets of array possibilities – Error
I’m trying to control the position of null based on if it’s being controlled by a slider or not.
If it’s controlled by the slider – It moves.
If it’s not controlled by the slider it returns to it’s default position and does not move.I get the “Dimension error” 1 instead of 3
I’m searching all over the place and I can’t figure out why this does not make sense?!?!
control = effect("Checkbox Control")("Checkbox") ;
xoffset=thisComp.layer("Camera Controls").effect("Mosaic Mover X")("Slider")*30;
yoffset=thisComp.layer("Camera Controls").effect("Mosaic Mover Y")("Slider")*20;
x=parent.position.value[0];
y=parent.position.value[1];
z=parent.position.value[2];if (control == 0){
[x+xoffset,y+yoffset,z];
}else{
[x,y,z];
}Jason Hearne
EdenFX
Visual Effects and Animation
