I can’t find anywhere how to use ‘Action’ in PremierePro UXP.
e.g.) createSetInPointAction, createAppendComponentAction, createBinAction …
Could you tell me about it?
Hi!
You can refer to our sample panel, which includes lots of coding samples of using UXP API (including actions): GitHub - AdobeDocs/uxp-premiere-pro-samples.
But in short, you’ll need to set up locked access to the project, create, and execute the action. Example code snippet below:
const proj = await ppro.Project.getActiveProject();
const projectRootItem = await proj.getRootItem();
try {
project.lockedAccess(() => {
project.executeTransaction((compoundAction) => {
const createBinAction = rootItem.createBinAction("Bin4", true);
compoundAction.addAction(createBinAction);
});
});
} catch (err) {
console.log(`Error: ${err}`);
}
1 Like
Thank you for letting me know!
It’s a bit more complicated than ExtendScript But I think it’ll be fine.
I’m trying out uxp-premiere-pro-samples now.
I’m looking forward to seeing how PremierePro UXP evolves in the future!