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

how can i rename item of rootitem in premiere project and move this item to a bin by actionscript

Guest
Oct 17, 2014 Oct 17, 2014

Copy link to clipboard

Copied

I use this code in my button:

var prj:Project = Premiere.app.project;
var arr:Array = new Array();
arr[0] = "c:\abc.mp4"
prj.importFiles(arr);

Premiere project add an item named "abc.mp4" but i want display this item with name like "somethingiwant.mp4".

and then i create bin by:

prj.rootItem.createBin("tempbin");

i want move the clip into this bin.


I can not do these, help me please !!

TOPICS
SDK

Views

1.1K

Translate

Translate

Report

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 , Oct 17, 2014 Oct 17, 2014

First: The current PPro release (8.1, or "PPro CC 2014.") is the last that will support Flex-based panels. I recommend moving to HTML5-based panels, as soon as possible.

Second: Instead of moving the footage item into the bin AFTER importing it, you can create and target the new bin BEFORE the import.

[Sample code is ExtendScript]

var newBin = app.project.rootItem.createBin("Bin for your stuff");

newBin.select(); // target new bin for next import

importFiles(...); // import files, as before

Votes

Translate

Translate
Adobe Employee ,
Oct 17, 2014 Oct 17, 2014

Copy link to clipboard

Copied

First: The current PPro release (8.1, or "PPro CC 2014.") is the last that will support Flex-based panels. I recommend moving to HTML5-based panels, as soon as possible.

Second: Instead of moving the footage item into the bin AFTER importing it, you can create and target the new bin BEFORE the import.

[Sample code is ExtendScript]

var newBin = app.project.rootItem.createBin("Bin for your stuff");

newBin.select(); // target new bin for next import

importFiles(...); // import files, as before

Votes

Translate

Translate

Report

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
Guest
Oct 17, 2014 Oct 17, 2014

Copy link to clipboard

Copied

thanks bbb, i will move to html5 soon but with this version i need to fix for my customer.

So how about rename the Media item in premiere, I mean: instead of right click and choose rename, how can my software do that?

plz help

Votes

Translate

Translate

Report

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
Adobe Employee ,
Oct 18, 2014 Oct 18, 2014

Copy link to clipboard

Copied

Here's the ExtendScript.

     var item = app.project.rootItem.children[0];

     if (item == null) {

          alert("The first item in the project needs to be footage.")

     } else {

          item.name = "Whatever you want the new name to be"; }

Votes

Translate

Translate

Report

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
Guest
Oct 18, 2014 Oct 18, 2014

Copy link to clipboard

Copied

thanks you very much for quick reply, i used the code for my premiere plugin, so i use actionscript  3 , not extendscript, any advise for this situation

Votes

Translate

Translate

Report

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
Adobe Employee ,
Oct 19, 2014 Oct 19, 2014

Copy link to clipboard

Copied

My advice remains 'update to HTML5'.

Secondarily, ActionScript can call ExtendScript; search the web for 'CSXSInterface' and 'evalScript'

Votes

Translate

Translate

Report

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
Guest
Oct 23, 2014 Oct 23, 2014

Copy link to clipboard

Copied

hi bbb_99,

Thanks for reply but at the moment we can not change to CC. So we still use CS6.

I tried Extendscript with CS6 but can not rename Clip with your command.

var item = app.project.rootItem.children[0];

      if (item == null) {

          alert("The first item in the project needs to be footage.")

     } else {

          item.name = "Whatever you want the new name to be"; }

Do you know how to change Clip metadata with extendscript? I want to change attribute "Name" instead of above.

Votes

Translate

Translate

Report

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
Adobe Employee ,
Oct 24, 2014 Oct 24, 2014

Copy link to clipboard

Copied

LATEST

CS6 didn't support renaming project items.

Votes

Translate

Translate

Report

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