Component API in Premiere Pro CC2017?
i noticed cc2017 update premiere pro brought in new component api, provides access clip keyframes. awesome.
the problem api isn't documented. nearest thing documentation bruce bullis' "play keyframes" ppropanel sample. however, used in sample, specifics api super vague.
with other premiere apis, extendscript toolkit's object model viewer provides useful information expected types or whether value readonly. component api mysteriously missing object model viewer, however. indication exists @ trackitem class contains readonly components property of type componentcollection. dove little bit test scripts , able determine bit more information apis i've not figured out everything. @ point i'd input those-in-the-know, rather push diminishing returns.
i've codified i've found (and combined info gleaned ppropanel project) typescript typings listed below. i'm pretty i've got componentcollection, component, , componentparamcollection figured out. componentparam class, however, contains lot of incomplete information. default marked no function parameters , void return type.
declare class componentcollection { readonly numitems: number; } declare class component { readonly displayname: string; readonly matchname: string; readonly properties: componentparamcollection; } declare class componentparamcollection { readonly numitems: number; } declare class componentparam { readonly displayname: string; addkey(): void; arekeyframessupported(): boolean; findnearestkey(): void; findnextkey(): void; findpreviouskey(): void; getkeys(): array<time>; getvalue(): number; getvalueatkey(): void; isempty(): boolean; istimevarying(): boolean; keyexistsattime(): boolean; removekey(): void; removekeyrange(starttimeseconds:number, endtimeseconds: number, shouldupdateui: boolean): void; setinterpolationtypeatkey(): void; settimevarying(varying: boolean): void; setvalue(): void; setvalueatkey(): void; }
could in know fill in blanks here?
More discussions in Premiere Pro SDK
adobe
Comments
Post a Comment