markreidvfx / pyaaf

Python Bindings for the Advanced Authoring Format (AAF)
http://markreidvfx.github.io/pyaaf
MIT License
49 stars 9 forks source link

Dictionary CreateMetaInstance #24

Closed Toadman30 closed 8 years ago

Toadman30 commented 8 years ago

Is there a way to create a MetaInstance for a ClassDef?

C Example

IAAFClassDef *pcd = NULL;
AAF_CHECK(pDictionary->CreateMetaInstance(AUID_AAFClassDef, IID_IAAFClassDef, (IUnknown**)&pcd));
AAF_CHECK(pcd->Initialize(kAAFClassID_Avid_MC_Mob_Reference, cdIntObj, L"Avid MC Mob Reference", kAAFTrue));
markreidvfx commented 8 years ago

this is now possible in the latest dev branch see test_ClassDef.py for a example

Toadman30 commented 8 years ago

Awsome! Thank you