ok! fyi this small edit on the awesome Nik Ska expression did the trick !
this is for the vertical lines:
var zCorrect;
try{
var cam = thisComp.activeCamera;
var camWS = cam.toWorld(cam.transform.pointOfInterest);
zCorrect = -1*(fromWorld(camWS)[2] - position[2])/cam.cameraOption.zoom;
}
catch(err){
zCorrect = 1;
}
var w = thisComp.layer("control").effect("line width")("Slider");
var newScale = trueScale(thisLayer,scale[1]);
var s = content("cuad").transform.scale[1];
scaleFactor = 100/s;
val = w*zCorrect*100/s
function trueScale(layer,sc){
if(layer.hasParent){
return trueScale(layer.parent,sc*=(layer.parent.scale[0]/100));
}
else{
return sc;
}
}
And for the horizontal just changing the
var newScale = trueScale(thisLayer,scale[1]);
var s = content("cuad").transform.scale[1];
to
var newScale = trueScale(thisLayer,scale[0]);
var s = content("cuad").transform.scale[0];