Forum Replies Created

Page 1 of 11
  • Miguel De mendoza

    July 15, 2019 at 3:21 pm in reply to: Layer Alpha Boundary Size?

    As I can see inspecting scripting layer properties, there is no such property. Maybe you can precomp the matted image and use “sampleImage()” to get alpha values of the precomp. Not trivial, not elegant and not eficient but may work

  • Just remove from your code "valueAtTime(t)"

  • Miguel De mendoza

    June 21, 2019 at 12:25 pm in reply to: link expression through comps

    The strings are case sensitive. In the image, “CONTROLS” appears in upper case, and in your code in lowercase “Controls”. Could it be that?

  • Miguel De mendoza

    June 20, 2019 at 9:53 am in reply to: bug in outPoint output

    In the graphic interface of After Effects, you will always see “one more frame” at the end of the layer. If you look at the exact frame where the layer ends, you will see that nothing appears in the viewer. However, outPoint refers to that last frame in which the layer is no longer visible. Therefore, if you want to know what is the last visible frame of the layer, you should subtract a frame in your expression:

    A=thisComp.layer("Vibration Anim");
    A.outPoint / thisComp.frameDuration - 1;

  • You can not change the color of specific characters in a text layer.

  • Miguel De mendoza

    June 4, 2019 at 1:54 pm in reply to: Script UI Oauth

    Maybe building a local server helps you

  • Miguel De mendoza

    May 30, 2019 at 5:19 pm in reply to: Inherit only position property from parent

    For plain relatinships, just change position by the property you want to parent:

    parentPosition = thisComp.layer("Parent Layer Name").transform.position;
    parentScale = thisComp.layer("Parent Layer Name").transform.scale;
    parentOpacity = thisComp.layer("Parent Layer Name").transform.opacity;
    parentScaleX =parentScale[0];
    ////and so on ....

    For what you are looking for explicitly:

    thisParent = thisComp.layer(""Parent Layer Name"");
    parentPos = thisParent.transform.position;
    parentScaleWidth = thisParent.transform.scale[0];
    toRight = thisParent.width/2 * parentScaleWidth/100 + parentPos[0];
    [toRight + value[0], value[1]]

  • Miguel De mendoza

    May 30, 2019 at 3:37 pm in reply to: Inherit only position property from parent

    Try this on child position:

    parentPosition = thisComp.layer("Parent Layer Name").transform.position;
    value + parentPosition // Remove this line if you need locked child

  • Miguel De mendoza

    May 30, 2019 at 3:30 pm in reply to: Exclude last word from a sentence.

    To get the las item of the array you can get it like this:

    var myArray = ["SKY", "WALKER", "ANAKIN"];
    var lastItem = myArray[myArray.length -1]; // returns "ANAKIN"
    var nameInitial = lastItem[0]; //returns "A"

  • Miguel De mendoza

    May 16, 2019 at 7:20 pm in reply to: sourceRectAtTime

    Just use one of the dimensions:
    var s = thisComp.layer("1");
    var w = s.sourceRectAtTime().width;
    var h = s.sourceRectAtTime().height;
    [w,w]

Page 1 of 11

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