Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

How to create a Bin in Premiere Pro UXP? createBinAction execution method is unclear.

Jan 06, 2026 Jan 06, 2026

 

Corpo do Post (para copiar e colar):

Hello,

I am trying to create a new bin in the project root using the Premiere Pro UXP API, but I am stuck on the final step
of executing the action.

Environment:
* Premiere Pro Version: 25.6.3

What I have tried:
I have successfully managed to get the project, the root item, and create a binAction object. The following code
successfully runs until the project.executeTransaction part.

1 // Note: 'ppro' is from const ppro = require("premierepro");
2 // Note: 'log()' is a custom function to print to the panel.
3
4 async function createBins() {
5 try {
6 log("Step 1: Getting active project...");
7 const project = await ppro.Project.getActiveProject();
8 if (!project) {
9 log("Failed: No active project.");
10 return;
11 }
12 log("Success: Project is active.");
13
14 log("Step 2: Getting root item...");
15 const projectRoot = await project.getRootItem();
16 if (!projectRoot) {
17 log("Failed: Could not get project root.");
18 return;
19 }
20 log("Success: Root item found.");
21
22 log("Step 3: Creating bin action...");
23 const binName = "TEST_BIN";
24 const createBinAction = projectRoot.createBinAction(binName, false);
25 log("Success: Bin action created.");
26
27 log("Step 4: Executing transaction...");
28 // This is where it fails.
29 await project.executeTransaction(() => {
30 // What is the correct method to call here?
31 // createBinAction.do(); // Fails with "is not a function"
32 // createBinAction.execute(); // Fails with "is not a function"
33 }, `Create Bin: ${binName}`);
34
35 log("Bin created successfully!");
36
37 } catch (e) {
38 log(`ERROR: ${e.toString()}`);
39 }
40 }

The Specific Problem:

Inside the project.executeTransaction() callback, I am not sure how to execute the createBinAction object. I have
tried createBinAction.do() and createBinAction.execute(), but both result in a TypeError: is not a function.

My Question:

What is the correct function to call on the Action object returned by createBinAction to execute it within a
transaction for Premiere Pro v25.6.3?

Thank you for your help!

---

TOPICS
How to , SDK
154
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Jan 06, 2026 Jan 06, 2026

The premiere_api UXP sample shows how to create a bin; does that work for you?

Translate
Adobe Employee ,
Jan 06, 2026 Jan 06, 2026
LATEST

The premiere_api UXP sample shows how to create a bin; does that work for you?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines