Forum Replies Created

Page 12 of 32
  • Xavier Gomez

    January 21, 2016 at 12:23 pm in reply to: Ternary diagram / ternary plot calculations

    I think that Patrick wants the converse: given a reference triangle and a point in that triangle with comp coordinates [x,y], find the coordinates of the point in the triangle system (barycentric coordinates).

    What the “formulas” look like will depend much on how you have parametrized the triangle. For instance in one case you know the coordinates of the 3 summits of the triangle, in another case you know the bottom left corner and the length of a side, and if you use a shape layer you’ll know the center and outer radius. So you should tell more about your framework.

    Xavier.

  • Well yes, if the UI never updates whatever you do, i suppose it is a bug. And when you actually render the comp, do you get the logType you asked for?

  • For me it works (CC2014), but the UI is not updated instantly.

    If the logType is initially ERRORS_ONLY, say, then doing the following returns the result: true, and the UI is updated only when hovering the mouse over the Log dropdownlist.

    app.project.renderQueue.item(1).logType = LogType.ERRORS_AND_PER_FRAME_INFO;
    app.project.renderQueue.item(1).logType === LogType.ERRORS_AND_PER_FRAME_INFO;

    What behaviour are you observing to say that it doesnt work ?

    Xavier.

  • Xavier Gomez

    December 18, 2015 at 11:25 am in reply to: Effects categories

    There is no ready-made method to do that, therefore you should make your own sorted list of effects.
    However, it appears that the app.effects array seems to be already sorted by category, that is, all effects belonging to the same category appear in blocks.
    It is not stated in the scripting guide, but since the sorting of an array of 500+ entries cannot be by chance, i would trust it, it allows to store much less things.
    For instance, you could store the index start(inclusive)/end(exclusive) of each category in an object:

    var rangeTable = {
    “3D Channel” : {start: 0, end: 7},
    “Audio” : {start: 7, end: 17},
    “Blur & Sharpen” : {start: 17, end: 34},
    /*etc*/
    };
    and fill the dropdown with those infos. Here is a function that would create that object:

    var NO_CATEGORY = "(No Category)"; // or something else, up to you
    function getCategoriesRangeTable(){
    var table = {};
    var effects = app.effects, i=0, I=effects.length, k;
    while (i

    Xavier

    (edit: part of the code didnt display correctly...)

  • To avoid clamping, you can use this:

    outputLow + (input-inputLow) * (outputHigh-outputLow)/(inputHigh-inputLow);

    Xavier

  • Xavier Gomez

    November 18, 2015 at 2:13 pm in reply to: How to hide expressions in .aep file….

    Tricky!
    I tried this on an expression designed for a text layer. And suprise:
    Had to use double eval otherwise…… 🙂

    Xavier.

  • Xavier Gomez

    November 15, 2015 at 9:29 pm in reply to: Conditional Statement with 2 if’s

    I’m not completely sure that this is what you want but, well, it might be it!

    txt = thisLayer.text.sourceText;
    if (txt.length > 0 && txt[0] == "(" && thisComp.layer("VALUES").effect("On/Off_Value11")("Checkbox")==1) 100 else 0;

    Xavier.

  • Xavier Gomez

    November 13, 2015 at 1:28 pm in reply to: Change color of a single character using expressions.

    You’d need a text animator (Fill Color).
    But then it’s easier if you animate the blink the same way, using a text animator (Opacity).
    Here is a setup that works, it migh be what you want:

    The screen was not bigh enough to show everything, so, in words :
    The second animator is a duplicate of the first, with

    (1) the Opacity property replaced by Fill Color,
    (2) the Amount expression removed.

    (all other settings and expressions are the same as for the first animator).

    Hope that works.

    Xavier.

  • What you want is not possible with expressions, and even if doable with a script, it would be overly complicated. The expansion (or extrusion) of a mask path is another path that doesnt necessarily have the same number of vertices, nor, which is worse, the same number of components. Calculating the extrusion requires some knowledge about Bezier things, and if your path is keyframed it will truely be a nightmare.

    Edit: Just read my post again, it feels a bit dry… Sorry for the tone.
    And it might be after all that there exists a script that extrudes mask paths, i’m not aware of one.

    Xavier.

  • Xavier Gomez

    November 5, 2015 at 3:38 pm in reply to: Expression

    Just swap 6000 and 8000 in the expression, so:

    linear(completion, 0, 100, 8000, 6000);

    Xavier

Page 12 of 32

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