Quantcast
Channel: Adobe Community : Popular Discussions - Premiere Pro SDK
Viewing all 53010 articles
Browse latest View live

How to know the extension of an EPR preset

$
0
0

WE have the integrator put only the presets they want the user to user for our Export Controller plug-in. They copy the presets from the Premiere MediaIO/statempresets/ folder.

 

When we get the EPR file it does not tell me what the file extension should be.

 

How do I determine the extension for the file to be saved in my Export Controller from the EPR preset file?


Status Window while ExtendScript is running?

$
0
0

Hi there,

is there any chance of letting the user know what my scripts are doing at the moment?

I'm writing a custom importer and in some cases it my take some seconds until you see the result. A "please wait"-Window or something would help... but I can't figure out how to open and close a new panel.

 

Thanks,

Mathias

Change sequence settings to all sequences of the project.

$
0
0

Hi there,

 

I have a project with a lot of sequences, and I have to change the settings. Is it a way to create a batch for making everything at once? Not manually.

 

Regards.

Demo panel loading undocked with no surrounding window

$
0
0

Hi,

 

I have followed the instructions on this page to setup the demo panel for Adobe PP.

 

https://github.com/Adobe-CEP/Samples/tree/master/PProPanel


It did load and I opened it from the Window > Extensions menu. But it appears undocked and without any window bars surrounding it (the one that has the 'x' at the top right corner). So I can't drag it anywhere or close it.


Any ides why that would happen?


I am using Adobe PP CC v.9.0.2 on Windows 7 (64).



Thanks in advance!

Call OS commands via scripting

$
0
0

Is there a way to call OS commands via the Premiere scripting API?

 

Basically I would like to run a python script from within premiere, but I see no way to call a os command.

 

After Effects has the system.callSystem method, which could look something like this:

 

cmd = "from sb_pipeline import folderStructure; print folderStructure()"

// Call the python script.

var s = system.callSystem('python -c ' + '"' +  cmd + '"');

alert(s);

 

 

/Simon

where to put premiere script, then where can i find it in premiere UI?

$
0
0

where to put premiere script, then where can i find it in premiere UI?

How to fetch frame rate of a project item?

How to get interpretation fps for a MediaItem

$
0
0

In the below-mentioend thread there is a good amount of discussions already on source frame rate, v/s PPro's footage interpretation fps:

Re: How to fetch frame rate of a project item?

 

I'm looking to get the interpretation fps for a media item, in order to seek to that point correctly in the sourceMonitor.

 

Kindly let me know if this information is possible to obtain.


Master List of Functions / Hierarchy

$
0
0

I've done some coding in the past, but I'm new to Premiere Pro panels. Wondering if there is some sort of master document or XSD that lists all the functions and hierarchies so I know where to find objects and operations.  Extend script doesn't seem to suggest very much.

 

Thanks,

 

Justin

Loading .epr file from panel - what relative path?

$
0
0

I want to render clips using a predefined preset. It works fine when using an absolute path (e:\path\preset.epr). But I want to include this epr file inside the panel directory.

 

Where should I put it? And how do I reference it properly?

 

I tried this: Added it to the jsx directory, and referenced it using the code below. Doesn't seem to work.

 

var encode = app.project.activeSequence.exportAsMediaDirect(localdir+app.project.activeSequence.name+"-0"+marker_index+".mp4", "./render.epr", app.encoder.ENCODE_IN_TO_OUT);

How to access the Premiere Pro clipboard?

$
0
0

I'm not sure if I need to use the SDK for this or not.

 

Basically, I want to be able to COPY many different items from Premiere, like presets, transitions, and clips... into the clipboard, one at a time, and then SAVE all of that clipboard information somewhere where it won't get overwritten when the next thing is copied onto the clipboard.

 

Then I'm going to program a system (probably using AutoHotKey) where any particular item can be recalled and placed back into the active clipboard, then pasted straight into Premiere like normal.

 

This would allow me to use custom keyboard shortcuts to instantly apply any effect I want, any transition I want, and any group of clips that I want to the timeline... incredibly easily and flawlessly.

 

 

I've tried using autohotkey's clipboardAll() function, (Clipboard and ClipboardAll) but it doesn't work for items copied in Premiere... only for text and pictures and things like that. It looks to me like Premiere has its own special clipboard that it uses for more complicated things like copying effects or clips off of the timeline.

 

So again, my question is, how do I access the Premiere Pro clipboard? Where is that file located in Windows? I searched through all the Premiere AppData files and I didn't see anything that looked like clipboard information... I'm not even sure if that's the right place to look.

 

I downloaded the SDK, but I don't see any information about the clipboard in the included help file, so I don't know if the SDK would be useful for this.

 

I would be so, so grateful if anyone could help me with this. I'm a video editor, not a programmer, so this stuff is not very easy for me.

Multiple Outputs in Encoder

$
0
0

I know the following code in the sample panel will allow you to render a sequence in Media Encoder, however is there a way to add multiple outputs/presets so that one sequence can render to multiple files?

 

Sample Code:

app.encoder.encodeSequence( app.project.activeSequence, fullPathToFile,                            outPreset.fsName, app.encoder.ENCODE_WORKAREA, 1);

 

I tried duplicating this snippet, however it just creates multiple render jobs in encoder, not multiple outputs.

 

What I'm trying to achieve looks like this in AME:

Screen Shot 2017-03-31 at 10.12.34 AM.png

Any input is appreciated.

 

Thanks,

 

Justin

Start timecode in Premiere not matching with FCP and Media info

$
0
0

Hi All,

 

We are trying to recreate markers created in our application to assets in premiere using our panel.

For normal videos this recreation is working fine.

We are facing an issue while recreating the markers in premiere when there is a non zero offset time code for a video.

When there is a non zero offset time code for a video, the start timecode value we are getting in our system (using mediainfo) is different from that in Premiere pro.

We have checked the file in FCP also and found out that the FCP and Mediainfo time codes are matching.

 

Media info

Time code of first frame                 : 07:22:37:00

 

FCP

Time code of first frame                 : 07:22:37:00

 

Premiere_offset_wrong_2.png

 

Premiere pro

Time code of first frame                 : 07:22:10:11

Premiere_offset_wrong_1.PNG

 

Is it a bug in Premiere? Or do we need to do some preference changes?

 

Here are the details from mediainfo,

General

Complete name                            : F:\songs\TEST\frame rate\23.97_offset_not_matching_with_premiere.mov

Format                                   : MPEG-4

Format profile                           : QuickTime

Codec ID                                 : qt   2005.03 (qt  )

File size                                : 19.9 MiB

Duration                                 : 1 min 31 s

Overall bit rate                         : 1 827 kb/s

Encoded date                             : UTC 2009-08-26 12:40:25

Tagged date                              : UTC 2009-08-26 12:41:55

Writing library                          : Apple QuickTime

Media/UUID                               : 2881B878-67F5-46C0-BBFA-9124D7CD11E9

 

 

Video

ID                                       : 1

Format                                   : AVC

Format/Info                              : Advanced Video Codec

Format profile                           : Main@L3.1

Format settings                          : 2 Ref Frames

Format settings, CABAC                   : No

Format settings, RefFrames               : 2 frames

Format settings, GOP                     : M=2, N=90

Codec ID                                 : avc1

Codec ID/Info                            : Advanced Video Coding

Duration                                 : 1 min 31 s

Bit rate                                 : 1 821 kb/s

Width                                    : 960 pixels

Height                                   : 720 pixels

Display aspect ratio                     : 16:9

Original display aspect ratio            : 4:3

Frame rate mode                          : Constant

Frame rate                               : 23.976 (23976/1000) FPS

Color space                              : YUV

Chroma subsampling                       : 4:2:0

Bit depth                                : 8 bits

Scan type                                : Progressive

Bits/(Pixel*Frame)                       : 0.110

Stream size                              : 19.9 MiB (100%)

Language                                 : English

Encoded date                             : UTC 2009-08-26 12:40:25

Tagged date                              : UTC 2009-08-26 12:41:55

Color range                              : Limited

Color primaries                          : BT.709

Transfer characteristics                 : BT.709

Matrix coefficients                      : BT.709

 

 

Other

ID                                       : 2

Type                                     : Time code

Format                                   : QuickTime TC

Duration                                 : 1 min 31 s

Time code of first frame                 : 07:22:37:00

Time code, striped                       : Yes

Title                                    : 2

Language                                 : English

Encoded date                             : UTC 2009-08-26 12:41:55

Tagged date                              : UTC 2009-08-26 12:41:55

 

 

Thanks and Regards,

Anoop NR

How to enable NodeJs for HTML5 Panels

$
0
0

Hi All,

We are trying to implement downloading assets from url, in our Premiere pro Panel.

From the premiere pro sdk forum we came to know that by using NodeJs we can implement this feature(Downloading file with NodeJS in CEP extension )

Also we have gone through the github sample Nodejs.html (Samples/Nodejs.html at db6086245ee6b64466710056f60ca324fce12880 · Adobe-CEP/Samples · GitHub )

 

Here is the code and Panel screenshots:

function isNodeJSEnabled() {

  if (typeof(require) !== 'undefined') {

  $('#result').val("Node.js is enabled");

  } else {

  $('#result').val("Node.js is disabled");

  }

  }

Nodejs.PNG

 

But when we run the code from our panel, we are getting the message  "Node.js is disabled".

We have added the following values in manifest file

<CEFCommandLine>

  <Parameter>--enable-nodejs</Parameter>

  </CEFCommandLine>

Downloading file with NodeJS in CEP extensionBut still we get the same result. "Node.js is disabled"

We are testing the panel in Windows 7,Adobe Premiere pro CC 2015.2 (9.2.0(41))

 

What are the steps we need to take care in-order to enable NodeJs in our panel?

 

Thanks and Regards,

Anoop NR

Undefined is not an object

$
0
0

Hello,

 

I'm having an issue with an HTML5 panel for Premiere Pro.  I have the panel installed on 15 computers and it works fine on 10 of them.

On the other 5, the panel launches but when a button/script is pressed an alert box comes up and says "Undefined is not an object".

Any ideas?

 

thanks,

Kelly


Can you build premiere pro plugins using the After Effects SDK?

$
0
0

I come from the background of using Motion and Final Cut Pro.  I am one of the few programmers who uses the FxPlug API which is used to make Motion and Final cut Pro Plugins.  I am expanding into trying to create plugins for premiere pro.  I am confused by After Effects and Premiere Pro having two different SDKs.  After Effects seems to have some structure to it with a parameter setup and methods for rendering while Premiere Pro seems to have very little structure to it.  I noticed that I can open .plugins created with the After Effects SDK both inside After Effects and Premiere Pro while I have had trouble getting any of the Premiere Pro .bundle's to work correctly at all.  What is the difference in making a .bundle vs a .plugin when .plugins seem to work in both?

 

I am on a Mac and using Xcode and anytime I try to debug any of the example projects that came with the Premiere Pro SDK I have this error. "This file path does not exist on disk at this location.  /Applications/Adobe Premiere Pro CC 2017/Adobe Premiere Pro CC 2017.app/Contents/MacOS/Adobe Premiere Pro CC 2017 - NSDocumentRevisonsDebugMode YES".

 

I cant even get one of the example projects off the ground to mess with one for debugging and testing purposes.  What are the benefits of using one SDK over the other?

 

My last question relates to effects and project media files.  Do you need to insert media into the project every time or can I have media built into an effect kind of like a Generator in Final Cut Pro.  In Final Cut Pro you can have media cooked into an effect and media is not needed in the project or the timeline to accomplish this.  It seems like effects only offer presets that are just a difference in parameters but do not have any media built into them.  Is it possible to have media inside of an effect in either Premiere Pro SDK or After Effect SDK?

Custom overlays and modifying Safe Margins?

$
0
0

Hi folks,


I had a quick question and haven't been able to find proper information when researching... but would creating custom overlays and modifying the safe margin be theoretically possible within the SDK? If so what approach would be taken to do so?

 

If there is documentation on creating things such as this, and I've missed it, I apologize for wasting your time - however pointing me in the right direction would be much appreciated!

 

Thanks in advance.

HTML5 Panel passing JSON data to javascript

$
0
0

Hi Bruce,

 

I will soon be working on an HTML5 panel that will be receiving some JSON data through a URL call.

Is there a way to pass this JSON data to the javascript portion of the panel, so I can access all the objects?

 

thanks,

Kelly

SCRIPTING for Premiere Pro

$
0
0

So there are plenty of tutorials for scripting in Adobe After Effects and lots of documentation.  But, as I understand, this isn't the situation for Adobe Premiere Pro.  I presume scripting is possible considering:

69447b12e961459f9058620ab6164927.png

But I have absolutely no idea how to get started.

 

The end goal is to create a script that will look throughout all of my imported project files (for the current open Premiere Pro project) and then use the "replace footage" command to swap every file that meets a certain file name criteria with other files in a specified directory that meet the same criteria.  So, for example, if I have:

 

DSTCNarration(1.1).flac

DSTCNarration(1.2).flac

DSTCBattle(BLURRED).mxf

SlowYellowMotion(BACK).mxf

DSTC(PREV).psd

 

imported into my project, then, when the script is run, it should prompt the user for a new file directory, which I would then enter manually, and then the script should automatically replace the five files above with five different files in the new specified directory by searching for files names based on certain file name criteria:

 

ARBITRARYNarration(1.1).flac

ARBITRARYNarration(1.2).flac

ARBITRARY(BLURRED).mxf

ARBITRARY(BACK).mxf

ARBITRARY(PREV).psd

 

And then if there are two files that meet the criteria or there isn't a file that meets the criteria, it could just return an error while still carrying out whatever other replacements that it can.

 

A script like this could save me tons of time.  Rather than having to use "replace footage" for every clip individually and constantly navigating back to the same folder, it could all be done in one go for all of the files (as long as my new files are named appropriately).

 

So, is this even possible?  Is scripting in Premiere Pro this advanced even possible?  If so, how should I go about figuring out how to get a script to do this?  Would creating a plugin be more suitable for something like this?  Can any of you write a script that would do this?

CEP engine extension API to check for file existence

$
0
0

Hi All,

 

I am looking for an API (CEP FS) which checks a file is exist or not. I couldn't find such inside CEP fs library. I am referring to cep.fs object.

 

Note: I don't want to use JSX here as that would be asynchronous.

 

 

Premiere Pro version: 11.1.0

Extension Type: Panel

 

 


Thanks & Regards,
Meet Tank

Viewing all 53010 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>