Forum Replies Created

Page 7 of 9
  • Lord Scales

    May 15, 2007 at 9:00 pm in reply to: How to “Invert” a Propertie’s value

    You have this:

    audioMax = 25;
    completionMax = 0;

    audioMin = 0;
    completionMin = 100;

    a= thisComp.layer(“Audio Amplitude”).effect(“Both Channels”)(“Slider”);
    linear(a,audioMin,audioMax,completionMin,completionMax)

    As the “a” value changes from “audioMin” and “audioMax”, the value of the Completion will change in a linear interpolation from completionMin to completionMax.

    Lord Scales

  • I looked in Google about “calcValue” but I found nothing intersting about.

    Is “calcValue” an specific function of JavaScript Expressions or you created it in the expression?

    Thanks.

    Lord Scales

  • Lord Scales

    May 14, 2007 at 9:41 pm in reply to: Dan’s Revamped Site

    I agree. Dan’s site was good, but now it is much better. I can see with his new examples that expressions really almost eliminate the use of keyframes.

    I think it is the best site about expressions ever created!

    Thanks, Dan!

    Lord Scales

  • Lord Scales

    May 14, 2007 at 9:36 pm in reply to: terms and definitions?

    Oh, I recommed the two sites I know about expressions:
    http://www.motionscript.com – site of master Dan and https://www.jjgifford.com/expressions/index.html

    But if ou are talking about variables, that are letters that we use to “capture” a value, here is a short explanation.

    You can just add a variable to simplify your expression. An example: I have this in Opacity property:

    (75-5*2)/2

    To simplify (or maybe not) I could do this:

    l = 75;
    m = 5*2;
    s = l-m;
    c = 2;

    s/c

    We just eliminate the parentheses. In this case the variables difficult a bit, but in some cases they’re amazing. You can give almost any name to them (there are some “illegal” terms, like “value” and “final”). I could have:

    LordScales = 75;
    Mom = 4*2;
    sugar = LordScales – Mom;
    coffee = 2;

    sugar/coffee

    For (more information)

  • Lord Scales

    May 14, 2007 at 9:21 pm in reply to: Glow to expression slider

    I could not get it so good, but try creating a Null Object (Layer > New > Null Object – we will call it Controller -) with a Slider (Effect > Expression Controls > Slider Control). So copy and paste the following expression in Glow Radius:

    freq = 2; //frequency of wiggle
    amp = 15; // amplitude of the wiggle
    slider = thisComp.layer(“Controller”).effect(“Slider Control”)(“Slider”); // creates a variable to catch the value of the slider
    maxRad = 25; // the maximum radius you want the glow to have
    minRad = 0.5; // minimum radius
    seedRandom (3, true)
    w = wiggle (freq, amp); // creates a variable to catch the wiggle value

    linear (slider, 0, 100, minRad, maxRad) + w // as the value of “slider” changes from 0 to 100, the Glow Radius will change from mixRad to maxRad value and this value will be add to “w”‘s value

    Now the Glow Radius will wiggle but the main value is going to be controlled by the Slider in the Null.
    If you prefer a simple expression just try this:

    freq = 2; // frequency of wiggle
    amp = 25 // amplitude of wiggle
    wiggle (freq, amp)

    It works like the bigger one, but the main value will we controlled by the Glow Radius itself.

    I tested the both here and worked fine.

    Lord Scales

  • Lord Scales

    May 14, 2007 at 8:56 pm in reply to: rove across time in one axis

    There is a Preset in Effects and Presets (Window > Effects and Presets) called Separate XYZ (or something like this). With this preset, you can animate separately the positions so you can rove them separately also.

    Lord Scales

  • Lord Scales

    May 13, 2007 at 2:46 pm in reply to: Disable a layer at a specific time?

    Well, try changing the In and the Out Points to disable your layer. It is one alternative. But if it is not posible, I can’t help because I could connect a Checkbox Control (Effect/Expression Controls/Checkbox control) to the active switch, but I was unable to do the inverse.

    The stopwatch is in red:
    Image Hosted by ImageShack.us

    Lord Scales

  • Lord Scales

    May 12, 2007 at 3:34 am in reply to: Why time in Math.sin and Math.cos?

    Thank you!
    Rounded, 1 radian = 57.3

  • Sorry, I forgot the parentheses in 4th line.

    D = Math.exp (time);
    mult = 1; //multiplier of D
    years = 8000000000000;
    Math.round(years/(D*mult))

    I created another one also (the “transformation” will be faster in the middle and slower in the end):

    D = Math.exp (time);
    mult = easeIn (time, 5, 10, 1, 400000000); //multiplier of D, will change between 1-400000000 in an Ease In interpolation
    as time changes from 5-10
    years = 8000000000000;
    Math.floor(years/(D*mult))

    Lord Scales

  • I could not get waht you want to do really, but try this in Source Text:

    D = Math.exp (time);
    mult = 1; //multiplier of D
    years = 8000000000000;
    Math.round(years/D*mult)

    It will start at 8000000000000 and it will decrease fastly. If it is not what you want just tell us here. Hope to have helped!

    Lord Scales

Page 7 of 9

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