Forum Replies Created

Page 1 of 2
  • John Pritchett

    July 6, 2019 at 1:47 am in reply to: Setting value of 2nd keyframe by null position

    Thanks, but this seems to be giving the position of both keyframes, hence no animation…
    I need it to affect only the second keyframe…
    Any other guesses?

  • John Pritchett

    July 1, 2019 at 8:06 am in reply to: Expression to trigger based on comp duration

    t1 = key(1).time;
    t2 = key(2).time;
    d = t2-t1;
    t = linear(time,thisComp.duration-d,thisComp.duration-.1,t1,t2);
    valueAtTime(t)

  • John Pritchett

    July 1, 2019 at 8:05 am in reply to: Expression to trigger based on comp duration

    Dan, you are truly a master.
    Works almost perfectly!
    The animation is not finishing completely 1 frame from the end of the comp..
    I added a thisComp minus .1sec, and it works fine.

    Thank you.

    t1 = key(1).time;
    t2 = key(2).time;
    d = t2-t1;
    t = linear(time,thisComp.duration-d,thisComp.duration-.1,t1,t2);
    valueAtTime(t)

  • John Pritchett

    May 30, 2019 at 6:23 am in reply to: Multiple Expressions on one attribute

    Hey Tomas.. Yes, things are working correctly as I want without the last line…
    What I am attempting, is to have a position and opacity animation (simple 2 keyframes on each attribute) The comp marker is dictating when the animation finishes…all working fine so far.

    I need to have another script to switch visibility on or off triggered by a Slider (if number 1 its off, if number 2 its off, if number 3 its on)HOWEVER. the opacity is being used in the animation… so I guess I need to use valueAtTime somehow…

  • John Pritchett

    May 30, 2019 at 6:20 am in reply to: Multiple Expressions on one attribute

    Thanks Oleg, This is very strange. I added your suggestion (to the bottom of another attribute, but this will give the correct outcome)…and it works…however its throwing up an expression error…
    This is what I have now

    if(thisComp.layer(“Control Panel”).effect(“TEXT ALIGINMENT RIGHT LEFT”)(“Checkbox”) ==1) 0 else value;
    if(thisComp.layer(“Control Panel”).effect(“NUMBER OF LINES 1, 2 or 3”)(“Slider”) == 3) valueAtTime(t) else 0;

    Basically asking a checkbox to turn opacity on or off, AND a slider to turn opacity on or off..
    This is for a 3 line Lower Third.

  • John Pritchett

    January 19, 2016 at 9:46 pm in reply to: FIle Directory and MXF annoyance

    Im having a similar issue here Alan! I have a feeling your file directory could be incorrect.
    Im importing Sony F55 RAW mxf media using media browser. It sees all the individual mxf clips but not as an entire ‘reel’.
    Next issue is the way Media Browser is seeing the RAW clips. They are massively blown out. I assume this is due to PP not reading the XML sidecar file & therefore not displaying the RAW correctly.
    Resolve ‘sees’ them correctly. For previous versions of PP there was a plugin that needed to be installed. On CC 2015 apparently this is built into the software on install…but doesn’t seem to be functioning on my system…
    Lets hope someone knows???

  • John Pritchett

    November 18, 2013 at 3:55 am in reply to: Switching Effects on & off by a Checkbox controller

    Hi Dan,
    Sorry for the slow reply. I have been on and off this job.
    It would be great if you could help me out. There is no urgent rush.
    How to I get you the job file?
    Thanks

  • John Pritchett

    November 12, 2013 at 9:19 pm in reply to: Switching Effects on & off by a Checkbox controller

    OK Dan. Ive been working on this script now for a few days with no luck.
    Is there any chance I can send you my AE project file? This may give you a better idea of what I am trying to achieve.
    Many Thanks

  • John Pritchett

    November 5, 2013 at 3:01 am in reply to: Switching Effects on & off by a Checkbox controller

    OK. Kevin, I think you might have the answer.
    But I really have no idea how to implement.
    I guess I need 2 controllers.
    – The main controller to determine what colour to use. (red, green, turquise, blue, purple or magenta)
    – The shade controller to determine what shade of the above colours to use. (shade 1 to 6)
    I would prefer to have the colour control to be 6 check boxes to clearly label each colour, rather than a slider with a number relating to a colour….

    So I would be looking for:
    If red checkbox is on, apply-

    s = thisComp.layer(“Colour Controls”).effect(“Colour”)(“Slider”);
    colors = [[255,255,255],
    [179,32,52],
    [232,73,27],
    [239,125,0],
    [252,192,67],
    [255,229,150]];
    idx = Math.max(Math.min(colors.length-1,Math.round(s)-1),0);
    c = colors[idx]/255;
    [c[0],c[1],c[2],1]

    If green checkbox is on, apply-

    s = thisComp.layer(“Colour Controls”).effect(“Colour”)(“Slider”);
    colors = [[255,255,255],
    [0,104,51],
    [19,165,56],
    [162,199,59],
    [221,223,75],
    [255,242,101]];
    idx = Math.max(Math.min(colors.length-1,Math.round(s)-1),0);
    c = colors[idx]/255;
    [c[0],c[1],c[2],1]

    etc etc for all shades.

    Any ideas?
    Many thanks

  • John Pritchett

    November 4, 2013 at 5:48 am in reply to: Switching Effects on & off by a Checkbox controller

    OK. Thanks Dan this works OK for the solid layers, but not the Text layers…. When I apply this method, the entire layer gets filled….
    I have added below the script to change the colour of the fill.
    Basically I have 6 colour ways, each containing 6 shades of that colour.
    I currently have a controller choosing what shade gets selected in the Fill.
    Is there a way to add another controller to or check box to enable or disable scripts?
    This would be so I can take the approach of having one Fill effect with a script for each colour (6 colours x 6 shades), instead of 6 Fill effects with less complex scripts…
    Does this make sense???
    Much Appreciated.

    s = thisComp.layer("Colour Controls").effect("NAME Colour")("Slider");
    colors = [[255,255,255],
    [179,32,52],
    [232,73,27],
    [239,125,0],
    [252,192,67],
    [255,229,150]];
    idx = Math.max(Math.min(colors.length-1,Math.round(s)-1),0);
    c = colors[idx]/255;
    [c[0],c[1],c[2],1]

Page 1 of 2

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