Hey there!
I just wanted to play around with UXP for PPro, but I got stuck: Previously, in CEP, the changeMediaPath
and attachProxy
APIs were available to update the filePath of a projectItem as seen in the code below:
private updateLinkStatus(linkToUpdate: ILink, projectItems: { [key: number]: ProjectItem }): void {
const matchingItem = projectItems[linkToUpdate.nodeId];
if (!matchingItem) {
throw new Error(`No link could be found with the nodeId ${linkToUpdate.nodeId}`);
}
const filePath = matchingItem.getMediaPath();
const cleanFilePath = this.isWindows ? filePath.replace(/\//g, '\\') : filePath;
if (matchingItem.canChangeMediaPath()) {
matchingItem.changeMediaPath(cleanFilePath);
this.updateMediaPathForLink(matchingItem, linkToUpdate);
} else if (matchingItem.name.indexOf('Comp') !== -1 && filePath.indexOf('.aep') !== -1) {
matchingItem.setOffline();
matchingItem.attachProxy(cleanFilePath, 1);
this.updateMediaPathForLink(matchingItem, linkToUpdate);
}
}
This does not seem to be the case in UXP.
When do you expect these APIs or similar APIs to be ready for use in Premiere Pro Beta UXP?
Thanks in advance,
Kasper