1 Reply Latest reply on Nov 7, 2016 11:21 PM by Mylenium

    sampleImage Quivering

    dkchang

      Hi,

       

      These are the expressions being used:

       

       

      • Scale

       

      sourceLayer = thisComp.layer("Control Layer");
      sampleSize = [1,1];
      samplePoint = toWorld(transform.anchorPoint);
      colour= sourceLayer.sampleImage(samplePoint,sampleSize);
      x=colour[0]*258;
      [x,x]

       

       

      • Rotation

       

      thisComp.layer("Null 1").transform.rotation*-1

       

       

       

      Here is the project file and a preview. Please refer to these comps: "Comp 4" & "Control Layer"

       

       

      The scrolling is quivering. Is there a solution to remove this quivering effect so that the animation is smooth?

       

      Thanks,

      Daniel

        • 1. Re: sampleImage Quivering
          Mylenium Most Valuable Participant

          The scrolling is quivering. Is there a solution to remove this quivering effect so that the animation is smooth?

          Sure. You could use the .smooth() method in your expression after sampling the values or increase the size of your sample area to begin with so it's averaged and behaves better.

           

          Mylenium