ah ok i understand! it is :
"for (var i=0;i<app.project.activeItem.selectedLayers.length;i++){"
Search found 51 matches
- November 23rd, 2013, 6:34 am
- Forum: Scripts Discussion
- Topic: bug on a simple script..... need help!
- Replies: 1
- Views: 7189
- November 23rd, 2013, 5:45 am
- Forum: Scripts Discussion
- Topic: bug on a simple script..... need help!
- Replies: 1
- Views: 7189
bug on a simple script..... need help!
Hello, I wrote this simple script : when I use the "script debogage" in extend tool script, it highlights this line : "effetLineaire = calque.Effects.addProperty("ADBE Linear Wipe");". I really don't know why?? Any idea?? function volet_lineaireVertical(){ app.beginUndo...
- November 20th, 2013, 7:18 am
- Forum: Scripts Discussion
- Topic: onAltClick or onControlClick
- Replies: 4
- Views: 10602
Re: onAltClick or onControlClick
Just something else : is it possible to detect when the user is only pressing "shift" (and not "click + shift")? I just would want to change the name of the button when the user press shift on it : is it possible?
Thanks!!
Thanks!!
- November 20th, 2013, 7:13 am
- Forum: Scripts Discussion
- Topic: onAltClick or onControlClick
- Replies: 4
- Views: 10602
Re: onAltClick or onControlClick
Oh, thank you, it works like a charm!! Thank you!!
- November 20th, 2013, 7:12 am
- Forum: Scripts Discussion
- Topic: function time reverse keyframes
- Replies: 6
- Views: 14392
Re: function time reverse keyframes
off topic: Why not give a variable name to the layer instead of app.project.activeItem.selectedLayers[0] on every single line ?? For your question: layer.property("Position").selected = true; Can't remember if it selects all keys along. If not: for (k=1; k<=prop.numKeys; k++) prop.setSele...
- November 19th, 2013, 8:28 am
- Forum: Scripts Discussion
- Topic: function time reverse keyframes
- Replies: 6
- Views: 14392
Re: function time reverse keyframes
But I would just want to know if it's possible to highlight and select the position property in after effects when the script finish?
- November 19th, 2013, 8:27 am
- Forum: Scripts Discussion
- Topic: function time reverse keyframes
- Replies: 6
- Views: 14392
Re: function time reverse keyframes
Ok, thank you! I success to do that, because my script need only work with 2 keyframes : app.beginUndoGroup("Inversion script"); //ajoute un parametre case lorsqu'on coche l'échelle devient moins en X var inversion = app.project.activeItem.selectedLayers[0].Effects.addProperty("ADBE ...
- November 19th, 2013, 4:32 am
- Forum: Scripts Discussion
- Topic: onAltClick or onControlClick
- Replies: 4
- Views: 10602
onAltClick or onControlClick
Hello,
How do you write this event "onAltClick" or "onControlClick"? I know it's possible, I saw this on other scripts. Any idea?
How do you write this event "onAltClick" or "onControlClick"? I know it's possible, I saw this on other scripts. Any idea?
- November 19th, 2013, 3:11 am
- Forum: Scripts Discussion
- Topic: function time reverse keyframes
- Replies: 6
- Views: 14392
function time reverse keyframes
Hello,
I would want to make a function which reverse the keyframes of the selected properties, but I don't know how to call this "reverseKeyframes" : I don't even know if it exists!
Any idea?
I would want to make a function which reverse the keyframes of the selected properties, but I don't know how to call this "reverseKeyframes" : I don't even know if it exists!
Any idea?
- November 18th, 2013, 9:56 am
- Forum: Scripts Discussion
- Topic: Launch a script
- Replies: 2
- Views: 8155
Re: Launch a script
perfect! thank you!
- November 14th, 2013, 6:39 am
- Forum: Scripts Discussion
- Topic: Launch a script
- Replies: 2
- Views: 8155
Launch a script
Hello,
I would want to launch an external script by clicking on a button in my own script : is it possible?
Thanks in advance!
I would want to launch an external script by clicking on a button in my own script : is it possible?
Thanks in advance!
- November 14th, 2013, 6:33 am
- Forum: Scripts Discussion
- Topic: parsing layer names
- Replies: 4
- Views: 10673
Re: parsing layer names
I successes writing this :
var curComp = app.project.activeItem
var nbControlleur = 1;
var reg_exp = /Controlleur_bounce/;
for (var i = 1; i <= curComp.numLayers; i++) {
if(curComp.layers.name.match(reg_exp)){
nbControlleur=nbControlleur+1;
}
}
var curComp = app.project.activeItem
var nbControlleur = 1;
var reg_exp = /Controlleur_bounce/;
for (var i = 1; i <= curComp.numLayers; i++) {
if(curComp.layers.name.match(reg_exp)){
nbControlleur=nbControlleur+1;
}
}
- November 13th, 2013, 2:37 am
- Forum: Scripts Discussion
- Topic: parsing layer names
- Replies: 4
- Views: 10673
Re: parsing layer names
Aren't you getting this error message in the ESTK? "After Effects error: Value 0 out of range 1 to ..." That should give you a clue. Layer indexes start from 1. So you'd need: for (var i = 1; i <= curComp.numLayers; i++) { Paul Ok, Paul thank you again, it works! Now, I would like to pars...
- November 11th, 2013, 3:04 am
- Forum: Scripts Discussion
- Topic: parsing layer names
- Replies: 4
- Views: 10673
parsing layer names
Hello, I try to parse layer names. This works, but it launches only the name of the first layer (it's normal) : var curComp = app.project.activeItem; for (var i=0;i<curComp.numLayers;i++){ alert("number of layers is " +curComp.layers[1].name); } But, I don't understand because, when I assi...
- November 9th, 2013, 6:41 am
- Forum: Scripts Discussion
- Topic: Parsing layer names
- Replies: 1
- Views: 7046
Parsing layer names
Hello, I would want to parse all the layer names of the active comp, read these names and compare it to the string of a variable in my code. If one of the layer name is the same name than my variable, I would like to launch a pop up in after effects, with a question tag like "Do you want to?&qu...