Forum Replies Created

Page 980 of 1081
  • Dan Ebberts

    April 5, 2007 at 1:45 am in reply to: Wiggling Expression

    Wiggle creates an array of the same dimensions as the property it’s applied to. So for your first question, you’d want to do something like this:

    w = wiggle(0.5,200);
    [value[0],value[1],w[2]]

    Your second one would be like this:

    temp = wiggle(10,50);
    [temp[0],temp[0]]

    Dan

  • Dan Ebberts

    April 4, 2007 at 11:01 pm in reply to: rotation=time…

    Not sure if this is what you mean, but give it a try:

    degPerSec = 10; //degrees per second
    degPerSec*time;

    Dan

  • Dan Ebberts

    April 4, 2007 at 7:58 pm in reply to: Linking Expressions to Other Comps

    The easiest way is to probably just use the pick whip, but you’ve almost got it, it’s like this:

    s = comp(“your comp name goes here”).layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    scale + [s,s]

    Dan

  • Dan Ebberts

    April 4, 2007 at 2:25 pm in reply to: Simulating Weightlessness on Many Layers

    I’d start with something like:

    wiggle(.05,200)

    and adjust it from there. You might also want to add something similar to the orientation property:

    wiggle(.05,10)

    You can apply a expression to a bunch of layers at once by Edit > Copy Expression Only then select all the other layers and paste.

    Dan

  • Dan Ebberts

    April 2, 2007 at 6:44 pm in reply to: Scale a solid to text size

    Good suggestion. I’ve seen it done that way too, where what you’re after isn’t necessarily the bounding box – you just want to highlight the text. In the case I’m familiar with, the client actually created a duplicate font, where the characters were the same width as those in the normal font, but they were solid rectangular blocks.

    As I recall, there was a trick to get the seams between the letters to not be visible – might have been putting the highlight layer into draft quality to kill the anti-aliasing.

    Dan

  • Dan Ebberts

    April 2, 2007 at 4:17 am in reply to: Scale a solid to text size

    Unfortunately, expressions (and scripts) don’t have access to the bounding box info. If you need it bad enough, it’s possible to build a table of character widths (by analyzing the font glyphs) that you can use to get pretty close by having the expression add up the widths of all the characters in the text layer. It’s a pain, but it can work.

    Dan

  • Dan Ebberts

    April 1, 2007 at 8:26 pm in reply to: Radar Detection

    Hey – I’ts always great fun to use dot() and cross() in the same expression. Maybe I need to get out more. 8^)

    Dan

  • Dan Ebberts

    April 1, 2007 at 6:17 am in reply to: Layer Order Script

    Lloyd,

    Would the layers need to end up in the same slots? I mean, if you selected layers 3,6,7, and 9, would the sorted layers need to be in those slots?

    Dan

  • Dan Ebberts

    April 1, 2007 at 1:58 am in reply to: Radar Detection

    OK – here’s my entry 8^>. It seems to work for all conditions I can think of. The key setup variables are cw (true if rotating clockwise) and uv ([0,-1] if radar line starts out pointing up, [0,1] if down, [1,0] if right, [-1,0] if left).

    fadeAngle = 90;
    maxOpacity = 100;
    minOpacity = 0;
    cw = false; // true if clockwise rotation, false if ccw
    uv = [0,-1]; // unit vector representing initial orientation of radar line

    line = thisComp.layer(“RadarLine”);
    v = normalize(position – line.position);
    u = line.toWorldVec(uv);
    d = cross(v,u)[2] > 0;
    angle = radiansToDegrees(Math.acos(dot(v,u)));
    if ((cw && d) || (!cw && !d)) linear(angle,0,fadeAngle,maxOpacity,minOpacity) else minOpacity

    Dan

  • Dan Ebberts

    March 31, 2007 at 4:47 am in reply to: Radar Detection

    An opacity expression like this might do it:

    r = thisComp.layer(“niddle”).rotation;
    if (r < 105){ 0 }else{ ease(r,105,116,100,0) } Dan

Page 980 of 1081

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