Copy link to clipboard
Copied
Hi I have just started using extend script for premiere pro.
I need to know the size of an object that makes up a clip it uses
some photographs.
The script I should complete is the following:
var oggetto =app.project.rootItem;
//alert(oggetto.children[0].name );
for(i =0;i<oggetto.children.numItems;i++){
// $.writeln(i);
$.writeln(i+" "+oggetto.children[i].name ); //26 2014_10_14_21_33_29_DSC_0227.JPG
$.writeln(oggetto.children[i].children);
}
I have to get the X and Y dimensions of the photograph:
26 2014_10_14_21_33_29_DSC_0227.JPG.
Thanks for any advice.
Confirming: You want the dimensions of the associated projectItem, not the dimensions the media had before it was imported into PPro, correct?
If so, you can get that info in the private project metadata, associated with that projectItem.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Confirming: You want the dimensions of the associated projectItem, not the dimensions the media had before it was imported into PPro, correct?
If so, you can get that info in the private project metadata, associated with that projectItem.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
That information may be available in PPro's private project metadata: Here's how to access it.
https://github.com/Adobe-CEP/Samples/blob/63f176a4903b9be9e6aa73133ae689a3904f78c8/PProPanel/jsx/PPR...
Note: That may NOT be the size of the images as used in sequences; I'm not sure what value those original dimensions will have...?
Copy link to clipboard
Copied
Thank you but I don't know how to use the script you sent me. I am beginner, beginner ....
Copy link to clipboard
Copied
I'll reach out directly.
Copy link to clipboard
Copied
Ok