qmasingarbe / pymiere

Python for Premiere pro
GNU General Public License v3.0
367 stars 48 forks source link

Can't access master clip components - TypeError: type object argument after ** must be a mapping, not str #39

Closed pedrolabonia closed 3 years ago

pedrolabonia commented 3 years ago

Trying out the following:

import pymiere

project = pymiere.objects.app.project

print(project.rootItem.children[0].children[1].videoComponents[0].displayName)

Currently, there are 2 master clip effects on this file.

image

image

Gives me this error:

Traceback (most recent call last):
  File "d:/Dropbox/_CORA_LA/code/xablau-premiere/premiere.py", line 5, in <module>
    print(project.rootItem.children[0].children[1].videoComponents[0].displayName)
  File "D:\Dropbox\_CORA_LA\code\xablau-premiere\.venv\lib\site-packages\pymiere\objects\premiere_objects.py", line 676, in videoComponents
    return ComponentCollection(**kwargs) if kwargs else None
TypeError: type object argument after ** must be a mapping, not str
qmasingarbe commented 3 years ago

Hi @pedrolabonia , sorry for the wait, I fixed your bug, thank you for reporting it