Forum Replies Created

Page 1056 of 1081
  • Dan Ebberts

    September 27, 2005 at 12:46 am in reply to: A Script to access Sourcetext

    I haven’t tested this stuff, so there may be errors, but basically it’s like this. Finding a specific comp in the project window is kind of clunky, but you can do it like this:

    var compName = “xxxx”; //comp name goes here
    var myProject = app.project;
    var n = myProject.numItems;
    var foundIt = false;
    var i;
    for (i=1; i<=n; i++){ if (myProject.item(i).name == compName){ var myComp = myProject.item(i); break; } } Finding a layer in a comp is pretty much the way you do it in expressions: var layerName = "yyyy"; //layer name goes here var myLayer = myComp.layer(layerName); Getting the length of a layer's source text would look like this: var mySourceText = myLayer.text.sourceText; var mySourceTextLen = mySourceText.len; Hope that's helpful. Dan

  • Dan Ebberts

    September 26, 2005 at 9:00 pm in reply to: using 3D objects in AE without plugins

    Very nice! Thanks for sharing.

    Dan

  • Dan Ebberts

    September 26, 2005 at 9:00 pm in reply to: using 3D objects in AE without plugins

    Very nice! Thanks for sharing.

    Dan

  • Dan Ebberts

    September 26, 2005 at 3:58 pm in reply to: Scripting: Can I detect a selected vertex?

    Sorry, I don’t think so.

    Dan

  • Dan Ebberts

    September 26, 2005 at 2:22 pm in reply to: Scripting: Can I detect a selected vertex?

    I’ve never tried it, but I don’t think you can do it. If you figure out a way, let us know!

    Dan

  • Dan Ebberts

    September 25, 2005 at 8:33 pm in reply to: Simple script question

    Try this:

    P = thisComp.layer(“Camera 1”).position;
    [P[0],P[1],value[2]]

    Dan

  • Dan Ebberts

    September 25, 2005 at 8:33 pm in reply to: Simple script question

    Try this:

    P = thisComp.layer(“Camera 1”).position;
    [P[0],P[1],value[2]]

    Dan

  • Dan Ebberts

    September 25, 2005 at 8:30 pm in reply to: camera to object angle

    >I might post a sample when I have got it working with real footage

    Please do.

    Glad it worked out for you!

    Dan

  • Dan Ebberts

    September 25, 2005 at 8:30 pm in reply to: camera to object angle

    >I might post a sample when I have got it working with real footage

    Please do.

    Glad it worked out for you!

    Dan

  • Dan Ebberts

    September 25, 2005 at 7:47 pm in reply to: camera to object angle

    One thing I do is apply the expression to a slider or text layer and comment out everything after the variable I want to track. Not great, but it works.

    Dan

Page 1056 of 1081

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