Forum Replies Created

Page 1061 of 1081
  • Dan Ebberts

    September 8, 2005 at 2:29 pm in reply to: 3d position to 2d point (expression Q)

    Try this:

    A = thisComp.layer(“A”);
    A.toComp(A.anchorPoint)

    Dan

  • Dan Ebberts

    September 8, 2005 at 2:29 pm in reply to: 3d position to 2d point (expression Q)

    Try this:

    A = thisComp.layer(“A”);
    A.toComp(A.anchorPoint)

    Dan

  • Dan Ebberts

    September 7, 2005 at 1:18 pm in reply to: solid layers

    I think you can cut the masks (Edit > Cut), enlarge the layer, then paste the masks back in.

    Dan

  • Dan Ebberts

    September 2, 2005 at 5:44 am in reply to: Q for the Almighty Ebberts and other scripting gurus

    >What books/websites would you suggest to really get a good grasp on the principle/theory and rationale behind scripting.

    I guess that depends. Have you done any programming before? If so, probably all you need is a good JavaScript book and the After Effects scripting guide. Create a simple project for yourself. Look at the sample scripts to see if there’s something similar that you can use. Ask questions if you get stuck. Keep at it.

    If you haven’t done much programming, I’d still get the JavaScript book, but I’d tackle expressions first. Use expressions to learn JavaScript (looping, conditional code, arrays, string manipulation, etc.) After you’ve got your JavaScript chops down you’ll be better equipped to tackle scripts. Again, ask for help if you get stuck.

    >Also, it seems to me a person could prepare entire animation before even opening After Effects, then popping up the program and running a script. Is this possible?

    Absolutely. AE 6.5 comes with a sample script I wrote called “shapeTimeInsanity”. Just open the application and run the script and see what happens.

    Dan

  • Dan Ebberts

    September 2, 2005 at 5:44 am in reply to: Q for the Almighty Ebberts and other scripting gurus

    >What books/websites would you suggest to really get a good grasp on the principle/theory and rationale behind scripting.

    I guess that depends. Have you done any programming before? If so, probably all you need is a good JavaScript book and the After Effects scripting guide. Create a simple project for yourself. Look at the sample scripts to see if there’s something similar that you can use. Ask questions if you get stuck. Keep at it.

    If you haven’t done much programming, I’d still get the JavaScript book, but I’d tackle expressions first. Use expressions to learn JavaScript (looping, conditional code, arrays, string manipulation, etc.) After you’ve got your JavaScript chops down you’ll be better equipped to tackle scripts. Again, ask for help if you get stuck.

    >Also, it seems to me a person could prepare entire animation before even opening After Effects, then popping up the program and running a script. Is this possible?

    Absolutely. AE 6.5 comes with a sample script I wrote called “shapeTimeInsanity”. Just open the application and run the script and see what happens.

    Dan

  • Oh yeah, one more thing – you have to keyframe the movement of the car before the wheels will turn.

    Dan

  • I’m assuming the name of your car layer is “car”, and that you’ve made it the parent of the wheel layers, and the wheel diameter is the same as the wheel’s layer width. Then you just need something like this for the wheel’s rotation:

    car = thisComp.layer(“car”);
    diam = width;
    dist = length(car.position,car.position.valueAtTime(0));
    value + dist*360/diam*Math.PI;

    So all the wheels don’t look the same, you can set their initial rotation to different values.

    Dan

  • 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 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

Page 1061 of 1081

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