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

Create Premiere project programmatically

$
0
0

Hi,

 

In order to better integrate my app with Adobe Premiere, I would like the ability to create a Premiere project and populate it with certain clips.

 

Sony Vegas, for example, allows to pass by command line a script, which can do everything I need. However, I can't think of a way to do this with Premiere.

 

I think I could have an empty project to copy it whenever I need, and then have the user load the required clips through a Panel action, but I would prefer to do it in one step.

 

Is this possible at all?

 

I don't think the "Importer API" is really related, but I'm checking it just in case.

 

Best regards.


New World Scripting

$
0
0

As I was looking through the sample code today I was reminded of a curious function -- enableNewWorldScripting

 

What is this new world? and why would we want to enable/disable it, rather than it just always being available? Will documentation be added to the 'Premiere Scripting Guide' any time soon?

Is it possible to delete or enable/disable a clips using extendscript ?

$
0
0

I would like to know if javascript API has potential for delete/ripple delete clips. Please suggest, I haven't found any proper documentation for  javascript API. Basically, I'm looking for an object model diagram. 

How to identify the MXF-OP Atom files in a Premiere project

$
0
0

Hi All,

 

Is there any way we can go through a large project and find the MXF-OP Atom files in that project?

Is there any way to get the codec/wrapper details of the files in a Premiere project?

We are trying to achieve this using our HTML5-CEP based panel.

 

Thanks and Regards,

Anoop NR

TypeScript Enabled CEP Development

$
0
0

Modern Tools and ExtendScript

Earlier this week, Bruce Bullis integrated a pull request into the CEP Samples repository that included a new Sample called TypeScript. TypeScript is a language that "transpiles" into JavaScript and JavaScript-based languages (e.g. ExtendScript). It can also be configured in certain environments (e.g. Visual Studio Code) to provide normal JavaScript (and, it turns out, ExtendScript) development with helpful type checking and IntelliSense/autocompletion support. Here's an example:

TSExample.gif

Open the PProPanel-vscode folder in Visual Studio Code (or other TypeScript-aware IDEs?), open up the Premiere.jsx file, and simply begin typing. The environment is already set up to provide rich IntelliSense support.

 

Powered By TypeScript Declaration Files and JSDoc

The environment has to get information about the types from somewhere, right? The type information is identified by the TypeScript system in the following ways:

 

  • In the Panel JavaScript Environment:
  • In the App ExtendScript Environment:
    • Uses the TypeScript-provided ES5 type information (ES3 is coming - when available, it will be switched to use that!).
    • Uses custom Type Declaration files (included within the sample here) to help make the IDE aware of what types are available, as well as documentation!
    • Sources JSDoc comments for type information.

 

Beyond this, TypeScript is capable of type inference (set var x = 5; and the IDE will infer that x is a number). For more on how TypeScript does all of this, see this document.

 

Inline ExtendScript and PremierPro API Documentation

The declaration files included in the sample are currently incomplete, but bbb_999 has indicated interest in helping to fill in the blanks. These files are an improvement over the current documentation in that they can be [more] easily read on the web (don't need to be downloaded and opened in a browser) and also power in-line documentation and suggestions (as in the above gif)!

 

Writing in TypeScript

As configured, the sample does not actually assume that you will be writing in TypeScript and transpiling to JavaScript, but that you are simply writing JavaScript/ExtendScript. If you wish to use this feature, you will have to configure your IDE to do so (Visual Studio Code, Webstorm, Sublime Text, etc.).

 

Writing in NEW JavaScript

It should also be noted that TypeScript can transpile from new JavaScript to old JavaScript. This may not seem all that interesting except that you could use the latest ES6 features to write code for both your panel JavaScriptor your app ExtendScript. These would be transpiled into platform-compatible versions: target: "es5" for panel and target: "es3" for ExtendScript!

 

As with TypeScript, this use-case would require setting up the TypeScript compiler.

 

Debugging In Visual Studio Code

This sample also contains configuration settings to allow debugging of the panel (HTML) environment directly in Visual Studio Code, rather than through a Chrome browser. See:

vscode-debugging.png

 

Questions? Comments? Ask/post away!

Execute a system command in windows environment as administrator

$
0
0

Hi All,

 

Is there a way to execute system commands using the C:/windows/system32/cmd.exe from panels?

We tried the CEP HTML test Extension-> Create Process options, but cannot figure out how it is working

When we try to run the commands under set StdErr Handler but that is always creating ".exe Argument1" folder in the document folder.

 

How can we execute system commands in windows environment?

How can we run certain commands/ programme  as a specific user?

 

Thanks and Regards,

Anoop NR

Add Track audio/video to sequence

$
0
0

It there a way to add a new audio or video track into a sequence?

 

The way it would be used it to import footage into an existing sequence, but create a new track and import the clip onto that so that nothing would be overwritten?

 

Is this possible or offered yet?

Apple Metal 2 support for developing plugins?

$
0
0

So after Apple discontinued support for Nvidia drivers and seemed to stopped focusing on OpenCL too, I'd like to run Deep Learning inference through CoreML with Metal GPU acceleration for a MacOS Premiere Pro (and After Effects) plugin I will be developing soon.

 

But after reading the docs I haven't read anything about Metal, though the option in the project settings is there.

 

Will it take some time before plugin developers can utilize Metal?

 

I will just work with CoreML so I don't really need a lot of examples or documentation I suppose..

 

Thanks!


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?

Change frame rate of a Sequence

$
0
0

Hello again!

 

Would like to know: is it possible to change frame rate of a Sequence via scripting?

I need to set a custom number of frames. If I understand it correctly the choice is limited by the timedisplay table from the guide (100 TIMEDISPLAY_24Timecode, 101 TIMEDISPLAY_25Timecode, etc). But may be i need a 100 fps or 120?

 

Thank you!

How do you find "App installation path"

$
0
0

 

According to the SDK doc page 117 on presets, you're supposed to install to "App installation path" but I can't find a reliable registry entry that indicates what it is.

 

Premiere Pro presets

...

[App installation path]\MediaIO\systempresets\[exporter subfolder]

 

...

 

I did find...

HKEY_CURRENT_USER\Software\Adobe\Adobe Media Encoder\[version]\AMECodecCache\64\en_US\AppRoot

and..

HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\[version]\AMECodecCache\64\en_US\Default\AppRoot

and...

HKEY_CURRENT_USER\Software\Adobe\CommonFiles\Usage\Agent

 

What is the correct way to detect the installation path?

What if the user has CS5 and CS6 installed?

What if the user doesn't have en_US installed as the language?

 

Is it really a common preset system for CS5 and CS6 as the doc suggests or do you have to put it in both PPro and AME?

 

thx

 

Rallymax

Get clip position in sequence?

$
0
0

Hi everyone,

 

I'm writing a script to export all the individual clips in my sequences as individual videos.

I have the PProPanel example and have ESTK up and running nicely.

I can iterate through all the tracks and clips in a sequence no problem.

I was thinking of simply setting the Sequence In/Out to the beginning of each clip,

and then calling render() (as in the PProPanel) .

The following script works, except clip.start and clip.end are relative to the clip source media, not the sequence.

So how to retrieve the start and end of a clip relative to the sequence?

(p.s. before anyone suggests a manual way of exporting clips individually, note that I have to export around 6000 clips)

Any help appreciated, MM

function ExportClipsInSequence(sequence)

{

  if (!sequence) return;

 

  var videoTracks = sequence.videoTracks;

 

  for (var trackIndex = 0; trackIndex < videoTracks.numTracks; trackIndex++)

  {

      var track = videoTracks[trackIndex];

      var clips = track.clips;

      for (var c = 0; c < clips.numTracks; c++)

  {

  var clip = clips[c];

  sequence.setInPoint(clip.start.seconds);

  sequence.setOutPoint(clip.end.seconds);

  render(sequence);

  }

}

}

Access a Clip-Item from Premiere-Importer-Plugin

$
0
0

Hi,

 

I would like to access already imported clip-items in a bin from an importer-plugin. Unfortunately I didn't find any way to retrieve a list of clipitems in a project. Is there a way to access this information (maybe a specific Suite-callback or one of the im* functions)?

 

I would like to avoid importing an item, in case it was already imported before by another importer-plugin.

 

Is there anyone who already did something like this before or knows a way to do it?

 

Cheers,

 

Martin

Premiere Pro Programming language

$
0
0

Hello!

 

What is the programming language Adobe used to develop Premiere Pro and where can I find information about how they developed it?

Passing keyboard presses while panel is active

$
0
0

Is it possible to pass keyboard/shortcut presses onto Premiere when the panel is active?

 

When I click a button on my panel and hit 'spacebar' (to play the timeline) since the panel is active, and not the timeline, I get an error noise. I then have to click back over to the timeline to reactivate the timeline, then hit spacebar to continue playing.

 

It would be awesome if when I have the panel active, and press a key, that it passes the key press to premiere to do it's usual thang.


Focus Panel with Keyboard?

$
0
0

Is it possible to set up Premiere Pro to be able to switch to a target Panel or Extension? There are two interactions we have in mind for this:

 

  1. [Registerable?] Keyboard Command to open or focus a panel/extension.
  2. OS keyboard commands to switch to floating window.

 

It's really annoying to keep having to use the mouse to switch to a specific extension panel.

 

What's more, with respect to #2 (on macOS, at least), it seems that it's possible to use the built-in window-switching keyboard shortcut [⌘`] (command tick) to switch from a floating panel to the main application, but not back to the floating panel! Once the main app has context, it appears to swallow the command entirely...

Keyboard Shortcut Conflicts

$
0
0

Is there a way to override Premiere Pro shortcuts when your custom CEP Panel is in focus? For instance, I'm trying to get the Cmd+Z and Cmd+Shift+Z shortcut for a text field in my panel, but it keeps triggering the Premiere Pro undo command instead.

 

  $("#editor").on("keyup", function(e){       e.preventDefault();       if(e.keyCode == 91 && e.keyCode == 90)       {       undoEdit();       }  });

 

I know the code works since I tested it with each key individually, and I believe e.preventDefault() is supposed to allow this, but it's not working in my case. Any thoughts are appreciated. Thanks!

Is it possible to load jsx file other than the local extension folder?

$
0
0

Hello All,

 

I want to load jsx file dynamically from the server (e.g. Through an http get call) in my premiere pro panel. How this can be achieved?

 

Premiere Pro version: 9.0.0
Extension Type: Panel

 

 

Thanks & Regards,
Meet Tank

Automate Title Creation

$
0
0

Hi all,

Is it possible to develop an import plugin to generate titles and populate them with text?  If so, where can I find a bit of information on how to begin with this?

 

The goal will be to parse an excel sheet and generate titles.

 

Thank you!

Lock / Unlock audio or video track

$
0
0

I was surprised after searching the forum that this question hasn't already come up.

 

I checked the sample and reflections but could not find any methods that would allow me to lock or unlock specific tracks, much like the setMute() / isMuted() code in the sample.

 

Do we have this capability? Would be a huge help.

Viewing all 53010 articles
Browse latest View live


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