Danny Princz
Forum Replies Created
-
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);
-
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);
-
.value
awesome
thanks so much
you are the man!
-
.value
awesome
thanks so much
you are the man!
-
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
-
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
-
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); -
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); -
thanks dan
i was trying something like that for the time but couldnt get it to work.
ill give it another go
-
thanks dan
i was trying something like that for the time but couldnt get it to work.
ill give it another go