Forum Replies Created

Page 4 of 5
  • I’m sorry about that. Let’s try this one: https://vimeo.com/191042442

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Haha. I’m sure it’s not just you. I tried to be as clear as possible but to be honest I’m confused myself! Here is a link to what I’m talking about: https://vimeo.com/191042442

    Some contents or functionalities here are not available due to your cookie preferences!

    This happens because the functionality/content marked as “Vimeo framework” uses cookies that you choosed to keep disabled. In order to view this content or use this functionality, please enable cookies: click here to open your cookie preferences.

  • Paul Connors

    November 8, 2016 at 3:28 pm in reply to: If/Else statement to control text color

    Huzzah. This works as well!!! Thank you very much Mr, Marques!

  • Paul Connors

    November 8, 2016 at 3:17 pm in reply to: If/Else statement to control text color

    Hi Fredrik. This worked perfectly…thank you very much! I hope you’re feeling better. Having the flu is a real downer.

    For anyone else interested this is what the final code looked like:

    • Solid layer named “Solid-1” with a Color Control effect. This expression is on the “Color” parameter within the Color Control effect:
    sampleImage(anchorPoint, [1,1], true, time)
    • Text layer named “Text-1” with a Fill effect. This expression is on the “Color” parameter within the Fill effect:
    sampleColor = thisComp.layer("Solid-1").effect("Color Control")("Color");
    hsl = rgbToHsl(sampleColor);
    if (hsl[2] < 0.5) [1,1,1,1] else [0,0,0,1];

    Hope that helps someone in the future. And all credit goes to Mr. Fredrik Akerlund who posted to this thread above. Thanks again Fredrik!

  • Paul Connors

    November 4, 2016 at 12:57 pm in reply to: ExtendScript – Add expression to opacity property

    A wizard I say! Thanks very much Walter. And thank you for your explanations to these solutions as well. It all makes more sense when I’m actually able to read what the problem was exactly and then why the solution works.

  • Paul Connors

    November 2, 2016 at 3:52 pm in reply to: ExtendScript – Add expression to opacity property

    You sir are a wizard! That worked like a charm. Thank you so much. If you’re able to help with one more little nuance that would be amazing. I tried to extrapolate the knowledge you just gave me but am missing somewhere. I’m trying to add an expression to a slider control now. I thought I wrote it correctly (it doesn’t return any errors when I execute it in After Effects) but the expression doesn’t show up on the slider control. I’m sure it’s something silly I’m overlooking. Here is the code:

    // This creates a new text layer
    myComp = app.project.activeItem;
    myText = myComp.layers.addText("Slide-Number-Selector");
    myText.startTime = 0

    // This creates a new null layer with a slider control named "Slider Control"
    var comp = app.project.activeItem;
    var myNull_1 = comp.layers.addNull();
    myNull_1.name = "Controls";
    var slider1 = myNull_1.Effects.addProperty("Slider Control");
    slider1.name = "Slider Control";

    // Here I'm defining a expression for the newly created "Slider Control"
    var mySliderExpression = "C = comp(\"Master\"); \
    txt = C.layer(\"Slide-Number-Selector\").text.sourceText; \
    if (! isNaN(parseFloat(txt))) \
    parseFloat(txt) \
    else \
    value \
    ";

    // Here I'm attempting to apply the newly created expression to the "Slider Control"
    myNull_1.effect("Slider Control").expression = mySliderExpression;

    I’m not sure where I’m going wrong.

    Any help would be greatly appreciated. Thanks!

  • Paul Connors

    November 1, 2016 at 6:17 pm in reply to: ExtendScript – add expression to opacity property

    Hi Dan. That’s fantastic! Thank you very much. I’m able to get it to work with a simple expression like “75” or even “wiggle(2,50)” but I’m struggling to add a more complex expression to that opacity property. I have an expression from another project I’m trying to incorporate here. That working expression looks like this:

    C = comp("Master");
    ctrl = C.layer("Controls").effect("Slider Control")("Slider");
    L = C.layer(thisComp.name);
    val = Math.round(ctrl.valueAtTime(time+L.startTime));
    if (val == index) 100 else 0


    Do you know how would go about incorporating that to opacity expression help you offered above?

    Thanks!

  • Paul Connors

    November 1, 2016 at 6:16 pm in reply to: ExtendScript – Add expression to opacity property

    That’s fantastic. Thank you very much. I’m able to get it to work with a simple expression like “wiggle(2,50)” but I’m struggling to add a more complex expression to that opacity property. I have an expression from another project I’m trying to incorporate here. That working expression looks like this:

    C = comp("Master");
    ctrl = C.layer("Controls").effect("Slider Control")("Slider");
    L = C.layer(thisComp.name);
    val = Math.round(ctrl.valueAtTime(time+L.startTime));
    if (val == index) 100 else 0

    Do you know how would go about incorporating that to opacity expression help you offered above?

    Thanks!

  • Paul Connors

    November 1, 2016 at 3:32 pm in reply to: If/Else Statement + Source Text + Position Coordinates

    Hi Walter. I’m really sorry for the late reply. Thanks very much for the help with this!

  • Paul Connors

    November 10, 2011 at 3:46 pm in reply to: Venetian Blinds Effect/Transition used on NBC branding

    Hey Dave,

    Is there any way i could get a copy of your AE project file for this Vimeo version of the venetian blinds? It turned out great and I really want to get in their and dissect it!

    Great job!

    -Paul

Page 4 of 5

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