Forum Replies Created

Page 1062 of 1081
  • Dan Ebberts

    August 30, 2005 at 11:26 pm in reply to: What expression would I research to do this?

    Any good JavaScript reference will do, you just have to ignore the stuff that’s specific to web pages. I like “JavaScript the Definitive Guide” by David Flanagan.

    Unfortunately you can’t control kerning or font selection from an expression. You can control tracking, line spacing, scale, and fill & stroke color though.

    Dan

  • Dan Ebberts

    August 30, 2005 at 10:06 pm in reply to: What expression would I research to do this?

    Yup, split is what you want. Assuming your words are separated by carriage returns, you could use something like this to pick out the word “cat” from your example:

    s = thisComp.layer(“layer 2”).text.sourceText.split(String.fromCharCode(13));
    s[1]

    Dan

  • Dan Ebberts

    August 30, 2005 at 10:06 pm in reply to: What expression would I research to do this?

    Yup, split is what you want. Assuming your words are separated by carriage returns, you could use something like this to pick out the word “cat” from your example:

    s = thisComp.layer(“layer 2”).text.sourceText.split(String.fromCharCode(13));
    s[1]

    Dan

  • Dan Ebberts

    August 30, 2005 at 8:14 pm in reply to: Z pass using expressions

    Like this:

    p = thisComp.layer(“object B”).position;
    [value[0],value[1],p[2]]

    Dan

  • Dan Ebberts

    August 30, 2005 at 8:14 pm in reply to: Z pass using expressions

    Like this:

    p = thisComp.layer(“object B”).position;
    [value[0],value[1],p[2]]

    Dan

  • Dan Ebberts

    August 30, 2005 at 7:42 pm in reply to: Z pass using expressions

    Try this:

    start = 0;
    vanish = 1000;
    linear(position[2],start,vanish,100,0)

    Adjust start and vanish to suit.

    Dan

  • Dan Ebberts

    August 30, 2005 at 7:42 pm in reply to: Z pass using expressions

    Try this:

    start = 0;
    vanish = 1000;
    linear(position[2],start,vanish,100,0)

    Adjust start and vanish to suit.

    Dan

  • Dan Ebberts

    August 29, 2005 at 3:18 pm in reply to: Lower layers appearing over top layer

    Are the layers 3D?

    Dan

  • Dan Ebberts

    August 29, 2005 at 3:16 pm in reply to: Help – LookAt not working with parented camera

    This should work:

    C = thisComp.layer(“Camera 1”);
    lookAt(C.toWorld([0,0,0]),position)

    But did you try just turning on Auto Orient > Orient Towards Camera?

    Dan

  • Dan Ebberts

    August 29, 2005 at 3:16 pm in reply to: Help – LookAt not working with parented camera

    This should work:

    C = thisComp.layer(“Camera 1”);
    lookAt(C.toWorld([0,0,0]),position)

    But did you try just turning on Auto Orient > Orient Towards Camera?

    Dan

Page 1062 of 1081

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