Forum Replies Created

Page 249 of 277
  • Filip Vandueren

    July 19, 2005 at 8:11 pm in reply to: calendar using expressions

    Did you rename the Layer-name in the first line ?

    Probably something went wrong there, maybe the quotes around the name were not closed correctly.

    Oh,

    and there’s another error in my script (the yellow is the missing bit):

    it should be:

    dayCounter=linear(dateValue, startValue-1, startValue+days-1,0, days)

  • Filip Vandueren

    July 19, 2005 at 8:11 pm in reply to: calendar using expressions

    Did you rename the Layer-name in the first line ?

    Probably something went wrong there, maybe the quotes around the name were not closed correctly.

    Oh,

    and there’s another error in my script (the yellow is the missing bit):

    it should be:

    dayCounter=linear(dateValue, startValue-1, startValue+days-1,0, days)

  • Filip Vandueren

    July 19, 2005 at 2:54 pm in reply to: Question for the scripting wizards…

    Hi,

    i created a script that uses masks;

    It’s much better, render-times are mcuh better:

    just create a comp with 1 layer in it (movie or pre-comp), then run this script:

    https://www.vandueren.be/forumstuff/jsx/maskedLines.jsx
    It asks for 2 values at the beginning: line-height & time-Offset in millisecs, but you should be fine with the defaults (1 pixel, minus 1 frame).

    (BTW, if you use a time-offset other than 1 frame, enable frame-blending for a much smoother result.)

  • Filip Vandueren

    July 19, 2005 at 2:54 pm in reply to: Question for the scripting wizards…

    Hi,

    i created a script that uses masks;

    It’s much better, render-times are mcuh better:

    just create a comp with 1 layer in it (movie or pre-comp), then run this script:

    https://www.vandueren.be/forumstuff/jsx/maskedLines.jsx
    It asks for 2 values at the beginning: line-height & time-Offset in millisecs, but you should be fine with the defaults (1 pixel, minus 1 frame).

    (BTW, if you use a time-offset other than 1 frame, enable frame-blending for a much smoother result.)

  • Filip Vandueren

    July 19, 2005 at 1:22 pm in reply to: calendar using expressions

    Hi,

    Your date is controlled by a slider in the Numbers Effect.
    We can use that value to calculate the days passed since a given day:

    Make a new text-layer and give it’s “Source Text” property this expression:

    dateValue=thisComp.layer("Layer with Numbers effect").effect("Numbers")(4); // change the layerName
    startValue=3675; // the Slider-value at which you want the day counter to be 1
    days=180; // number of days you want to count
    
    dayCounter=linear(dateValue, startValue-1, startValue+days,0, days)
    

    if you don’t want the value 0 to be visible untill the counter actually starts running through he days,
    add these next lines:

    if (dayCounter>0) {
    	dayCounter;
    } else {
    	""
    }
  • Filip Vandueren

    July 19, 2005 at 1:22 pm in reply to: calendar using expressions

    Hi,

    Your date is controlled by a slider in the Numbers Effect.
    We can use that value to calculate the days passed since a given day:

    Make a new text-layer and give it’s “Source Text” property this expression:

    dateValue=thisComp.layer("Layer with Numbers effect").effect("Numbers")(4); // change the layerName
    startValue=3675; // the Slider-value at which you want the day counter to be 1
    days=180; // number of days you want to count
    
    dayCounter=linear(dateValue, startValue-1, startValue+days,0, days)
    

    if you don’t want the value 0 to be visible untill the counter actually starts running through he days,
    add these next lines:

    if (dayCounter>0) {
    	dayCounter;
    } else {
    	""
    }
  • Filip Vandueren

    July 19, 2005 at 12:22 am in reply to: Question for the scripting wizards…

    Ok, this is just theoretical, I’m not saying this is the best way, or that render-times will kepp you sane 😉

    1. Add the comp or layer to a new comp,
    2. Give it two “Linear Wipe” effects
    3. The first one needs these settings:
      Transition Completion: expression: 100*((index-1)/height)
      Wipe Angle: 180
  • Filip Vandueren

    July 19, 2005 at 12:22 am in reply to: Question for the scripting wizards…

    Ok, this is just theoretical, I’m not saying this is the best way, or that render-times will kepp you sane 😉

    1. Add the comp or layer to a new comp,
    2. Give it two “Linear Wipe” effects
    3. The first one needs these settings:
      Transition Completion: expression: 100*((index-1)/height)
      Wipe Angle: 180
  • Filip Vandueren

    July 18, 2005 at 11:54 pm in reply to: expression question

    Try this:

    Assuming you want maskexpansion to be 0 at scale 100 ->

    scaleFactor=0.1;
    (thisComp.layer("White Solid 2").scale[0]-100)/scaleFactor;

    Change the “Layer 1” to the name of your layer,
    and change the variable scaleFactor, to control how fast the maskexpansion works.
    0.1 means a scale of 200 will give a maskexpansion of (200-100)*0.1 = 10 pixels.

    Hope that’s clear.

  • Filip Vandueren

    July 18, 2005 at 11:54 pm in reply to: expression question

    Try this:

    Assuming you want maskexpansion to be 0 at scale 100 ->

    scaleFactor=0.1;
    (thisComp.layer("White Solid 2").scale[0]-100)/scaleFactor;

    Change the “Layer 1” to the name of your layer,
    and change the variable scaleFactor, to control how fast the maskexpansion works.
    0.1 means a scale of 200 will give a maskexpansion of (200-100)*0.1 = 10 pixels.

    Hope that’s clear.

Page 249 of 277

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