Forum Replies Created

Page 76 of 597
  • Kevin Camp

    November 13, 2014 at 8:56 pm in reply to: Count numbers up and down from array

    sorry about that, i didn’t have after effects in front of me to test, and should have caught that anyway…

    you’ll need a if/else to catch it:

    walmart = [498, 306, 68, 116, 130,146, 478, 1318, 2328, 2904, 2818, 3246, 3536, 3066, 3030, 2938, 3342, 3222, 3088, 2730, 2446, 2792, 2634, 1838];
    countDur = 5;
    n = Math.floor(time/countDur);
    if (n

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • it seems like you’re doing everything right… i’d be curious what happens if you choose ‘none (project only)’ for collect files…

    you did mention any basic troubleshooting, so i’ll mention make sure you have the latest updates for your version of ae, and/or try a reboot…

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Kevin Camp

    November 11, 2014 at 5:31 pm in reply to: Count numbers up and down from array

    if your comp is longer than the value array then the expression will exceed the length of the array unless you prevent that from happening.

    there are a number of ways to do that, but clamp() might be the easiest.

    try changing this line:

    n = clamp(Math.floor(time/countDur), 0, walmart.length-1);

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • if you want to keep you current set up using RGB colors, you could probably use colorama to r-ecolorize the solids.

    you’d need to set the input phase>get phase from to ‘hue’ and then you’d determine the 3 colors to use to colorize those rgb colors to in the output cycle. if you think of the output cycle wheel as a clock face, the way the wheel breaks down (when hue is selected for input) is red = 12, green = 4, blue = 8. deselecting the ‘interpolate palette’ option may make it easier to seet he colors.

    colorama doesn’t play nice with a layer’s alpha, so you’d also want to add cc composite, with composite original set to ‘stencil alpha’

    once you have those 3 colors set and cc composite, save that as a preset. when you need it, select the 3 layers and apply the preset.

    if you don’t mind changing your set up a little, you could use tritone, which gives you three color chips to set, and it works with alpha, so the set up is easier. tritone uses a layer’s intensity (or luminance) so it would require you to change your RGB layers to white, 50% gray and black, but then setting the remapped colors is a little more straight forward.

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Kevin Camp

    November 10, 2014 at 6:25 pm in reply to: One simple question about ‘color window’

    depending on the version of ae you have, there are some tips for using swatches in ae here:

    https://helpx.adobe.com/after-effects/using/color-basics.html#color_correction_color_grading_and_color_adjustment

    scroll half way down the page to the ‘using adobe color swatches’ section.

    if you are using an older version of ae that doesn’t have kuler or color themes, there are a few workarounds you can try.

    create a new project, create a new comp, add a solid in the color that you want to save for each color that you want to save (you might even name the solids something meaningful). then delete the comp and save the project as something meaningful. you can then import that project and the solids will come with it and you can then use any color picker to pick colors from those solids project window.

    another way would be to add color picker effect controls to a null, set the colors as needed and save them as an effect preset to recall when needed and use a color picker to choose from those colors as needed.

    or you could do that same technique but with the circle effect to put several colored circles on a layer to use as a palette to choose from in in the viewer rather than the timeline…

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Kevin Camp

    November 10, 2014 at 5:22 pm in reply to: Count numbers up and down from array

    you’re pretty close… you just don’t need to use a loop, you just need to break your time into 5 second chunks, then interpolate between the values during each chunk…

    i think this should do what you need:

    walmart = [498, 306, 68, 116, 130,146, 478, 1318, 2328, 2904, 2818, 3246, 3536, 3066, 3030, 2938, 3342, 3222, 3088, 2730, 2446, 2792, 2634, 1838];

    countDur = 5;

    n = Math.floor(time/countDur);
    startCount = walmart[n];
    endCount = walmart[n+1];

    Math.round(linear(time%countDur, 0, countDur, startCount, endCount))

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Kevin Camp

    November 7, 2014 at 10:40 pm in reply to: AE Preset From Multiple layers?

    your other option would be to have 3 presets, one for each layer. something like ‘chromatic aberration red’, ‘chromatic aberration blue’, ‘chromatic aberration green’….

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Kevin Camp

    November 3, 2014 at 9:02 pm in reply to: Reference layer by index, defined by slider control

    a layer control is definitely a better way to go, but you could use a slider to drive index, you’d just need to add a little more code to avoid the error.

    the first error you had was likely due to a number (like 0) that did not equate to a valid layer index. you could use an if statement like this to avoid the error:

    if (layerIndex > 0 && layerIndex <= comp("Comp Name").numLayers)

    you would also want to limit layerIndex to integers/whole numbers with a fuction like Math.round() or Math.floor(), etc…

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • yep, the problem is 3A… i think you may have meant 3*A..?

    also you could use ‘else if’ statements which would simplify your expression a little.

    A = timeToFrames(t = time + thisComp.displayStartTime, fps = 1.0 / thisComp.frameDuration, isDuration = false);

    if (A<20) y =A/4;
    else if(A<40) y=3*A/4;
    else if(A<60) y=A/2;
    else if(A<80) y=(3*A-40)/2;
    else if(A<100) y=3*A/4;
    else y=(5*A-200)/4;

    [y,y]

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

  • Kevin Camp

    October 30, 2014 at 11:13 pm in reply to: matrox m-peg 2 iframe codec for mac?

    if you were looking for something to use across both platforms, i would choose either avid’s dnxhd codec or quicktime photo-jpeg at a high quality setting (90+).

    dnxhd is a constant bit rate codec, similar to matrox’s i-frame codec. photo-jpeg is variable bit rate.

    both have very good image quality, dnxhd is standard with newer adobe apps, photo-jpeg has been around forever and is a standard part of quicktime. you probably have both installed already.

    Kevin Camp
    Art Director
    KCPQ, KZJO & KRCW

Page 76 of 597

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