thanks Dan,
maybe you can help me with a similar expression? i’ll post it underneath. i have a layer parented to a second layer. when the “master” layer moves left, the “slave” layer rotates with a positive value, when it moves left, it should rotate to a negative value. at the moment i have an if/else driven checkbox expression. maybe there is a way to somehow combine the expressions?
(i hope my english is good enough to make my case clear).
if (effect("Checkbox Control")("Checkbox")== 1){
r= -1 ;
}else{
r= 1 ;
}
x=thisComp.layer("Shape Layer 1").transform.position;
(x.speed/30)*r