Forum Replies Created

Page 4 of 4
  • 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];

  • Thanks Xavier!
    worked perfectly!

  • Santi Agustí

    January 21, 2016 at 2:21 am in reply to: inPoint/outPoint Per Character Opacity

    Hi!
    I’m trying to make the fade out of the expression ordered instead of random but it has not time enough to fade out at the given fadetime… is that possible to modify it so at that same fadetime, the fadeout’s speed changes to be able to always complete the fading out?

  • Santi Agustí

    September 10, 2014 at 5:58 pm in reply to: turn off light layers via scripting?

    thanks!!

Page 4 of 4

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy