ADOBE AFTER EFFECTS: Forum Expressions Tutorials Creative Cloud

Why collections do start at 1 instead of 0 on extendscript?

COW Forums : Adobe After Effects Expressions

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Miguel de Mendoza
Why collections do start at 1 instead of 0 on extendscript?
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?


Return to posts index

Tomas Bumbulevičius
Re: Why collections do start at 1 instead of 0 on extendscript?
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.


Return to posts index

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

Humans are not allowed in this thread.


Return to posts index


Tomas Bumbulevičius
Re: Why collections do start at 1 instead of 0 on extendscript?
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.


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]