Forum Replies Created

Page 25 of 32
  • Danny Princz

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

    thanks dan as always.

    i tried both ways but im still getting NAN showing up

    any idea what im doign wrong?

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

    redTeamScore.text.sourceText.setValueAtTime(currTime,newRedScore);

  • Danny Princz

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

    thanks dan as always.

    i tried both ways but im still getting NAN showing up

    any idea what im doign wrong?

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

    redTeamScore.text.sourceText.setValueAtTime(currTime,newRedScore);

  • Danny Princz

    September 26, 2006 at 3:39 pm in reply to: scripting question…

    .value

    awesome

    thanks so much

    you are the man!

  • Danny Princz

    September 26, 2006 at 3:39 pm in reply to: scripting question…

    .value

    awesome

    thanks so much

    you are the man!

  • Danny Princz

    September 26, 2006 at 2:38 pm in reply to: scripting question…

    ugh

    thanks so much

    i couldnt figure out why it wasnt working…

    i also have a layer expression effect that i would like to use to choose the layer that the script targets but i cant get that to work either.

    if i have an effect on myLayer named chooser

    var myTarget = myLayer.effect(“chooser)(“Layer”)

    so

    var myComp = app.project.activeItem;
    var myLayer = myComp.selectedLayers[0];
    var myCurrTime = myLayer.time;
    keyTimes = new Array (1,2,myCurrTime);
    keyValues = new Array(10,20,30);
    var myTarget = myLayer.effect(“chooser”)(“Layer”);

    myTarget.opacity.setValuesAtTimes(keyTimes,keyValues);

    what am i doing wrong here?

    thanks again

  • Danny Princz

    September 26, 2006 at 2:38 pm in reply to: scripting question…

    ugh

    thanks so much

    i couldnt figure out why it wasnt working…

    i also have a layer expression effect that i would like to use to choose the layer that the script targets but i cant get that to work either.

    if i have an effect on myLayer named chooser

    var myTarget = myLayer.effect(“chooser)(“Layer”)

    so

    var myComp = app.project.activeItem;
    var myLayer = myComp.selectedLayers[0];
    var myCurrTime = myLayer.time;
    keyTimes = new Array (1,2,myCurrTime);
    keyValues = new Array(10,20,30);
    var myTarget = myLayer.effect(“chooser”)(“Layer”);

    myTarget.opacity.setValuesAtTimes(keyTimes,keyValues);

    what am i doing wrong here?

    thanks again

  • Danny Princz

    September 25, 2006 at 8:45 pm in reply to: scripting question…

    it must be somthing else i am doing wrong as that is pretty much what i had

    i am an error that the value is not a float

    heres a test script

    var myComp = app.project.activeItem;
    var myLayer = myComp.selectedLayers[0];
    var myCurrTime = myLayer.Time;
    keyTimes = new Array (1,2,myCurrTime);
    keyValues = new Array(10,20,30);
    myLayer.opacity.setValuesAtTimes(keyTimes,keyValues);

  • Danny Princz

    September 25, 2006 at 8:45 pm in reply to: scripting question…

    it must be somthing else i am doing wrong as that is pretty much what i had

    i am an error that the value is not a float

    heres a test script

    var myComp = app.project.activeItem;
    var myLayer = myComp.selectedLayers[0];
    var myCurrTime = myLayer.Time;
    keyTimes = new Array (1,2,myCurrTime);
    keyValues = new Array(10,20,30);
    myLayer.opacity.setValuesAtTimes(keyTimes,keyValues);

  • Danny Princz

    September 25, 2006 at 8:38 pm in reply to: scripting question…

    thanks dan

    i was trying something like that for the time but couldnt get it to work.

    ill give it another go

  • Danny Princz

    September 25, 2006 at 8:38 pm in reply to: scripting question…

    thanks dan

    i was trying something like that for the time but couldnt get it to work.

    ill give it another go

Page 25 of 32

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