Forum Replies Created

Page 1000 of 1081
  • Dan Ebberts

    October 5, 2006 at 3:52 am in reply to: integers and strings…

    Hard to say. I’m sure the Adobe engineers did their best to make the syntax consistent, but there are some differences.

    Dan

  • Dan Ebberts

    October 4, 2006 at 10:01 pm in reply to: integers and strings…

    I can see a few errors. Try this:

    var myComp = app.project.activeItem; // active Comp
    var redTeamScore = myComp.layer(“red score”);
    var redScore = redTeamScore.sourceText.value.text;
    var currTime = redTeamScore.time;
    var redScoreInt = parseInt(redScore);
    var newRedScoreInt = (redScoreInt+1)
    var newRedScore = “” + newRedScoreInt;

    redTeamScore.sourceText.setValueAtTime(currTime,newRedScore);

    Dan

  • Dan Ebberts

    October 4, 2006 at 10:01 pm in reply to: integers and strings…

    I can see a few errors. Try this:

    var myComp = app.project.activeItem; // active Comp
    var redTeamScore = myComp.layer(“red score”);
    var redScore = redTeamScore.sourceText.value.text;
    var currTime = redTeamScore.time;
    var redScoreInt = parseInt(redScore);
    var newRedScoreInt = (redScoreInt+1)
    var newRedScore = “” + newRedScoreInt;

    redTeamScore.sourceText.setValueAtTime(currTime,newRedScore);

    Dan

  • Dan Ebberts

    October 4, 2006 at 8:20 pm in reply to: integers and strings…

    Two ways:

    myString = “” + myVariable;

    or,

    myString = myVariable.toString();

    Dan

  • Dan Ebberts

    October 4, 2006 at 8:20 pm in reply to: integers and strings…

    Two ways:

    myString = “” + myVariable;

    or,

    myString = myVariable.toString();

    Dan

  • Dan Ebberts

    September 29, 2006 at 5:28 pm in reply to: 3D layer having a different colored sides

    Then you’d probably want to make it the child of the front layer.

    Dan

  • Dan Ebberts

    September 29, 2006 at 5:28 pm in reply to: 3D layer having a different colored sides

    Then you’d probably want to make it the child of the front layer.

    Dan

  • Dan Ebberts

    September 29, 2006 at 2:18 am in reply to: Advanced Lightning Expression

    If the layer you want to trace is outlined by a mask, paste that mask into the position property of a Null, spread the resulting keyframes out to the timing you want, select the “Strike” lightning type, and apply this expression to the Direction parameter:

    fromComp(thisComp.layer(“Null 1”).position)

    Dan

  • Dan Ebberts

    September 29, 2006 at 2:18 am in reply to: Advanced Lightning Expression

    If the layer you want to trace is outlined by a mask, paste that mask into the position property of a Null, spread the resulting keyframes out to the timing you want, select the “Strike” lightning type, and apply this expression to the Direction parameter:

    fromComp(thisComp.layer(“Null 1”).position)

    Dan

  • Dan Ebberts

    September 29, 2006 at 1:15 am in reply to: 3D layer having a different colored sides

    Glad you like ’em, guys. 🙂

    Dan

Page 1000 of 1081

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