qmasingarbe / pymiere

Python for Premiere pro
GNU General Public License v3.0
363 stars 46 forks source link

Unable to get length of a collection (numItems) #12

Closed maverickmueller closed 3 years ago

maverickmueller commented 3 years ago

The intended attribute numItems does not seem to work. Iterating over the collection is still doable though.

But other than that this has been incredible. Sub-request: Please add a link for me to buy you a coffee or something

qmasingarbe commented 3 years ago

Using len() on a Collection type object will get you the actual length. It is the recommended way as it is more pythonic. Nevertheless I added the possibility to directly call the property containing the length on a colllection ( https://github.com/qmasingarbe/pymiere/commit/dd031dffd0951fd5932d4811270d1425f18f028b ) Thanks for your support!