ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Re: Delete Selected Keyframes via script

COW Forums : Adobe After Effects

FAQ   •   VIEW ALL   •   ADD A NEW POST   •   PRINT
Respond to this post   •   Return to posts index   •   Read entire thread


Sebastian Moreno
Re: Delete Selected Keyframes via script
on Feb 1, 2018 at 11:04:37 am

Hi Walter
I am stuck.

I tried looping backwards for everything, one by one (all first, or comp and the property and vice-versa) nothing seemed to work. Just forwards and as you said the index changes.
To see If i am doing something wrong I tried removing layers something super basic:

for ( var i = selectedLayers.length ; i != 0 ; i--) {
selectedLayers[i].remove();
}

and also

for ( var i = selectedLayers.length ; i > 0 ; i--) {
selectedLayers[i].remove();
}

This does not work. Is after having a bug ? IT WORKS when operand i =1 and of course it wont remove one of the selected.

any ideas why is this happening when looping backwards.


Posts IndexRead Thread 


Current Message Thread:





© 2019 CreativeCOW.net All Rights Reserved
[TOP]