-
stop expression and continue manually
I have a ligth linked to the camera move, and in some part, I want to stop the ligth following the posiution of the camera, and I want to move the ligth manually, with keyframes.
I create a Null and put a “checbox control” and when it is ON the expression is on, and when the checbox is off the expression of the ligth linked to the camera, stops.
I use this code for stop the expression (that the ligth is linked to the camera), but I don’t know how to add it in the second expression of the code (or anywhere) that when the expression stops, I want to continue moving the position manually, and I don’t want to write a second expression to ejecute when the first expression stops
control = thisComp.layer("Null 1").effect("Checkbox Control")("Checkbox") ;if (control == 1)
{
thisComp.layer("Camera 1").transform.position;
}
else
{
[here how to tell I want move manuaklly without expression?];
}