Adobe After Effects Expressions Forum
Why collections do start at 1 instead of 0 on extendscript?
Why collections do start at 1 instead of 0 on extendscript?
by Miguel de Mendoza on Apr 12, 2019 at 5:25:41 pm

Just for curiosity, I have been scripting for a long time and I still not understand it, especially when project.selection and comp.selectedLayers are Arrays. Anyone knows why or can figure out it?


Re: Why collections do start at 1 instead of 0 on extendscript?
by Tomas Bumbulevičius on Apr 12, 2019 at 8:23:41 pm

Just a plain guess in terms of layers - just because they are indexed in the timeline this way from 1 to human kinds, not to make confusion when accessing.

Project selections & Folder items - thats another story where I don't have a guess ☺ But indeed, thats an interesting topic!

Find out more:
After Effects Tutorials: motion design, expressions, scripting.


Re: Why collections do start at 1 instead of 0 on extendscript?
by Miguel de Mendoza on Apr 13, 2019 at 3:12:22 am

Humans are not allowed in this thread.


Re: Why collections do start at 1 instead of 0 on extendscript?
by Tomas Bumbulevičius on Apr 13, 2019 at 10:05:46 am

Haha, yeah, unless they do code something. Otherwise - forbidden area!

Find out more:
After Effects Tutorials: motion design, expressions, scripting.





© CreativeCOW.net