Ir al contenido principal

zoom , escala

Recuerda que son dos tipos de capas,


// Fast Blur with control layer
// Applied to Blurriness parameter

// Point1 is current layer, point2 is control layer
point1=this_layer.position;
point2=this_comp.layer("nombredelacapa"position;

// Find the vector between the 2 points
delta=sub(point1, point2);

// Now find the length
distance=length(delta);

//Use linear() to remap distance to range of 40 to 0
linear(distance, 0, 80, [250,250], [75,75]);

Comentarios

Entradas populares de este blog

Expression Péndulo

Aplicar a rotación, pér☺ en 3d. freq = 1.0; //oscillations per second amplitude = 50; decay = 0.7; amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*time)  --------------------------------------------------------------------------------- freq = 1.0; //oscillations per second amplitude = 50; decay = 0; //no decay amplitude*Math.sin(freq*time*2*Math.PI)/Math.exp(decay*time)   Gana dinero con Buxvertise

Rotación

this_point=position; that_point=this_comp.layer("aquinombre").position; // what to point at delta=sub(this_point, that_point); angle=Math.atan2(delta[1], delta[0]); radians_to_degrees(angle)-90; // Jumpy Wiggle 1 (moves at a random FPS) v=wiggle(5,50); if(v < 50)v=0; if(v > 50)v=100; v --------------------------------------------------------------------------------------- // Jumpy Wiggle 2 (moves at a defined FPS) fps=5; //frequency amount=50; //amplitude wiggle(fps,amount,octaves = 1, amp_mult = 0.5,(Math.round(time*fps))/fps); ------------------------------------------------------------------------------------------------- // Inertial Bounce (moves settle into place after bouncing around a little) n = 0; if (numKeys > 0){ n = nearestKey(time).index; if (key(n).time > time){ n--; } } if (n == 0){ t = 0; }else{ t = time - key(n).time; } if (n > 0){ v = velocityAtTime(key(n).time - thisComp.frameDuration/10); amp = .05; freq = 4.0; decay = 2.0; val...