Forum Replies Created

Page 2 of 2
  • The FG2421 Gaming Monitor has a refresh rate of 240Hz, capable of playing 240fps footage.

  • Tom Holmes

    October 10, 2014 at 8:58 am in reply to: AE Expressions, rounding to nearest multiple 5

    Dan, you’re a genius 🙂 works like a charm!

    Thanks very much!

    Tom

  • Hi Dan, thanks for the advice…

    The plans is to run the CompsFromSpreadsheet script to generate the multiple thousand variations of date ranges.

    It would be awesome to use a script but i haven’t the first clue on how to write scripts.

    what do you advise?

    :/

  • Tom Holmes

    July 24, 2014 at 4:29 pm in reply to: How to change solid color using slider control ?

    Hey,

    Id add two colour controllers to the layer. set one colour to the yellow and the other to red and then write your if else statement but don’t write the 4 value array just pickwhip to the colour controllers.

    if(effect(“Slider Control”)(“Slider”)==0)effect(“Color Control” (“Color”)else if(effect(“Slider Control”)(“Slider”)==1)effect(“Color Control 2”)(“Color”)}

    hope this helps!

    Tom

  • Tom Holmes

    July 24, 2014 at 4:21 pm in reply to: Light positions using Corner Pin?

    Dan you beat me to it haha,

    Adam don’t listen to me when Dan’s about haha…

    I still need your help on my expression issue Dan! 🙂

    Tom

  • Tom Holmes

    July 24, 2014 at 4:19 pm in reply to: Light positions using Corner Pin?

    Hi Adam,

    You will need to put this as an array,

    Try this:

    Drop down the position of the first light (hit ‘p’) Alt-click on the stopwatch to open expression editor. type ‘[‘ and then pickwhip the X value for the corner you want this light to be attached to, then type ‘,’ and pickwhip the Y value for the same point, then add another comma and then pickwhip to the lights own Z value (this will allow it to be adjusted)

    The position expression of the light should then look something like this (with your layer/effect names):

    [thisComp.layer(“Adjustment Layer 1”).effect(“Corner Pin”)(“Upper Left”)[0],thisComp.layer(“Adjustment Layer 1”).effect(“Corner Pin”)(“Upper Left”)[1],transform.position[2]]

    Repeat this step for each light to each other the other points.

    then set the Z value for each of the lights depending on how far forward in Z space you want them.

    I hope this helps!

    Tom

    [thisComp.layer("Adjustment Layer 1").effect("Corner Pin")("Upper Left")[0],thisComp.layer("Adjustment Layer 1").effect("Corner Pin")("Upper Left")[1],transform.position[2]]

  • Hi Dan, heres a quick example of my expression.

    I have a calendar, and based on what the date range is in two text fields (start date, end date) in comp ‘Data Fields’ (date has been converted into slider values, 0 means it isn’t in the date range, 1 means it IS in the date range, and 2 means its in another specified date range), the specific cells highlight(fill) when another slider controller is animated from 1 to 100.

    The expression set to all 31 cells… (shape layer’s ‘Fill’ parameter:

    nn=thisLayer.name.replace(‘c’,”);
    if(comp(“Data Fields”).layer(“Calendar 1”).effect(nn)(“Slider”)==1)

    linear(thisComp.layer(“Highlight Fade-On”).effect(“Highlight 1”)(“Slider”), 0,100, comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Calendar Cells”)(“Color”),comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Highlight Colour 1”)(“Color”))

    else

    if(comp(“Data Fields”).layer(“Calendar 1”).effect(nn)(“Slider”)==2)
    linear(thisComp.layer(“Highlight Fade-On”).effect(“Highlight 2”)(“Slider”),0,100,comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Calendar Cells”)(“Color”),comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Highlight Colour 2”)(“Color”))

    else

    comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Calendar Cells”)(“Color”)

    The numbers on the cells have an expression on their ‘Fill’ properties which will chance the colour of the text as the cell shape changes (so its more noticeable) This is applied to all 31 number layers:

    nn=thisLayer.name.replace(‘n’,”);

    if(comp(“Data Fields”).layer(“Calendar 1”).effect(nn)(“Slider”)==1)

    linear(thisComp.layer(“Highlight Fade-On”).effect(“Highlight 1”)(“Slider”),0,100,comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Text_Colour_Normal”)(“Color”),comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Text_Colour_Highlighted”)(“Color”))

    else

    if(comp(“Data Fields”).layer(“Calendar 1”).effect(nn)(“Slider”)==2)

    linear(thisComp.layer(“Highlight Fade-On”).effect(“Highlight 2”)(“Slider”),0,100,comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Text_Colour_Normal”)(“Color”),comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Text_Colour_Highlighted”)(“Color”))

    else

    comp(“Data Fields”).layer(“Adjustment Layer 2”).effect(“Text_Colour_Normal”)(“Color”)

    If you can make sense of my patchy explanation, do you have any advice on how i can optimize this expression. There is ALOT of repeat expressions.

    Thanks!

  • Hey Dan, thanks for your response!

    I’ve not use sampleImage() even once. Its mostly if/ else statements through the entire thing. parameters (mostly opacity and position) are determined by the source text of a text layer. I don’t have the aep files with me right now so i can give you can example of the expressions. but i can try to explain one example.

    I have a calendar page, June for instance. i need to be able to zoom into any particular date on that calendar. So i have a null object which is positioned on the date cell that i need to zoom into (e.g. 5th). The position of the null has an expression to position itself based on the source text of a text layer located in another comp. So if a the value of said text layer is “b2” for instance, the null would position itself on the corresponding cell on the calendar. This would allow the zoom in position to be controlled based on what the source text reads. Id be surprised if I’ve explained this well enough for you to understand, but basically the whole project is controlled in this way. There is highlight and other things that are also driven in the same way… like i said everything work exactly how i want it but everything is soooooo slow!

    does this make sense?

    Thank for you’re help dan, you’re always my go-to guy for expressions! 🙂

    Tom

  • Hi Max!

    i have a solution that may help you towards your goal.

    First of all create an adjustment layer and to it add a slider control and a color control.

    Take the layer you want to have its colour sampled and apply the fill effect to it. Then alt-click the slider stopwatch at pickwhip it to the color control. This will return the luminance value of the filled layer (between 0 and 1) times this expression by 10 (*10) and it will change the value from 0 – 10.

    now to sample the colour from a clip/image and have that effect the rotation combine this technique with the one Dan Ebberts has outlined in the following post.

    https://forums.creativecow.net/thread/227/11270

    Hope this Helps

    Tom

  • Hey Sebastian,

    if you apply two slider controls (Effect > Expression Controls > Slider Control) to the layer that you want wiggled, and then pick-whip the frequency value (the first of two values in a wiggle expression) to the first slider, and then pick-whip the variation value (the second of the two values to the second slider control, you will then be able to keyframe the sliders and gradually fade off the wiggle.

    For example, if the layer you wanted to wiggle was called ‘Layer 1, you’d apply two sliders to this layer and the position expression would read;

    wiggle(effect(“Slider Control”)(“Slider”),effect(“Slider Control 2”)(“Slider”))

    Hope this helps!

    Tom

Page 2 of 2

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