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

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


How can I access HTTP services via Extendscript from PPro CC

$
0
0

I attempting to build an HTML5 panel for Premiere Pro that retrieves assets from a third party REST API but there seems to be no support for Socket or XMLHttpRequest objects in this application which there is for others. (I get Error: Socket does not have a constructor)

 

How would I go about making these requests in Extendscript?

Downloading file with NodeJS in CEP extension

$
0
0

I'm trying to get file downloading with NodeJS working in my CEP extension for Premiere Pro CC 2015. I have the following script:

 

var http = require('http');
var fs = require('fs');
var file = fs.createWriteStream("file.jpg");
var request = http.get("http://i3.ytimg.com/vi/J---aiyznGQ/mqdefault.jpg", function(response) {    response.pipe(file);
});

 

The script works perfectly well if I run it on it's own. For example, if I put it in a file called test.js, and run node test.js in terminal, it successfully saves the image to the same directory the script is in.

 

When I include it in my CEP extension, however, nothing happens. The script executes without errors, but no file is downloaded anywhere. Even if I try:

try {     response.pipe(file);     alert("File downloaded");
} catch(e) {     alert(e);
}

 

The "File downloaded" alert pops up. So the lack-of-download doesn't seem to be from an error in the code, but perhaps in the way CEP works itself? I'm at a loss. Any suggestions?

 

Thanks!

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?

Introducing multiple functions in Extendscript

$
0
0

I have been doing my best to learn how to make more complicated scripts through the Premiere Panels, but keep getting hung up at this one issue.

 

I want to include checkboxes in the panel, that will allow an editor to "check" characteristics for their current project. They can then run the script from a button. Now I know this might not be the most compact or efficient way to code, but I am just copy/pasting a script with a few various changes for the project characteristics for the time being, and giving them different function names in the .jsx file (same set up that is shown in the Premiere.jsx file in the PProPanel sample). After adding some if statements to the HTML document javascript I call the function that I want to run, which works for a single function, but not when I add more than one. When multiple are involved I keep getting errors that "undefined is not a object" and that it is expecting a closing bracket. I have no clue where these are coming from.

 

In the HTML javascript I have this (just a section of it):

 

function myFunction() {

  if(document.getElementById("serialContent").checked == true){

  window.__adobe_cep__.evalScript("$._MYFUNCTIONS.mediaManage()", callback);

  }

  if(document.getElementById("serialContent").checked == false){

  window.__adobe_cep__.evalScript("$._MYFUNCTIONS.mediaManageAgain()", callback);

  }

  }

 

and over in the .jsx I have this for an example:

 

if (typeof($) == 'undefined') $ = {};

$._MYFUNCTIONS = {

  mediaManage: function() {

  alert("success # 1");

  }

  mediaManageAgain: function() {

  alert(success # 2);

  }

}

 

Any ideas out there, it seems so simple?

Looking to Activate Custom Panels via Keyboard Shortcut + Keyboard Listeners when Panel is Active

$
0
0

This may well a couple of feature requests, but looking forward to getting some feedback...

 

In the interest of building more robust and flexible custom HTML panels, we were looking for ways to achieve the following:

1 - Activate and give focus to a custom panel via keyboard shortcut.

2 - Once activated and in focus that custom panel's key listeners (keystroke, keyup, keydown) can be coded to either take precedent over PPro's keyboard shortcuts or not.

 

The goal is to get the above two to work in concert so as to create workflows that would allow 100% keyboard driven functionalities, along the lines of:

- Call the Custom Panel via PPro shortcut

- Run the Panel's function (or suite of functionalities) via keystrokes

- Release control back to PPro and Return to regular PPro kb by exiting Panel focus

Imagine rapid fire: keystroke to activate, use, and release.

 

So far we've been unable to do this.

Reasons:

A - Haven't found a way or workaround to assign the ability to open & give focus to a custom panel via keyboard shortcut

B - Haven't found a way to make custom panel key listeners reliably detect keystrokes even when they are in focus..

 

So far we've tried by way of the CSInterface binding listed here:

https://forums.adobe.com/thread/2250292

and via standard HTML5/JS bindings

document.body.addEventListener / document.addEventListener.

 

Occasionally they work, but not reliably.

 

We're on Mac OS

Scripting in Premiere CS6

$
0
0

I think i know the answer but i've seen some searches that suggest it is possible and i can see PPro as a target in ExtendScript

 

Can i script PPro CS6? Is there a scripting guide like there is for After Effects?

 

If not, are there any known plans to add this?

 

many thanks
Paul

Premiere Pro Script execution without ExtendScript Toolkit confirmation

$
0
0

Hi everyone,

I'm creating a video browser OSX app, that will import files to opened project, open and play it in the source viewer in Premiere Pro.

The app creates a JSX file with:

 

"#target premierepro";

app.enableQE();

var result=qe.project.importFiles(argv);

var num=qe.project.numItems;

var proje=qe.project.getItemAt(num-1);

proje.openInSource();

qe.source.player.play();

 

It works correctly in ESTK, but if I open it inside my app, calling:

NSWorkspace *workspace = [NSWorkspacesharedWorkspace];

[workspace openFile:jsxFilePath];

//This exactly the same than opening it in Finder via double-clicking it

 

It shows me this confirmation dialog (sorry for the Spanish localization)

Captura de pantalla 2015-02-06 a la(s) 12.22.45.png

If I press 'Si(Yes)', the script is executed correctly inside Adode Premiere, if I press 'No', then ESTK opens in Debug mode. This is the same behavior if I open the jsx file in the Finder.

 

Then, how can I avoid this dialog every time the app runs a script?

 

Thanks a lot,

Regards,


Does a PP Project have XMP data?

$
0
0

Hi all, can a Premiere Pro Project have XMP data?  I know clips can have data, but I want to store data globally for the project, not tied to a specific clip or bin.  I need to be able to blast all clips/bins from a project but still retain XMP data.

 

I found this thread but it wasn't much help:

Re: Storing data in Premiere Project

 

I saw in the DOM there's a "app.project.rootItem" which is of type ProjectItem.

 

I also saw the code in Premiere.jsx that reads/writes XMP data to ProjectItems and tried this on the root item, but with no luck.

 

Any help would be greatly appreciated.

 

TNKS!

 

G

Plug-In not showing up in premiere pro

$
0
0

Hello, I'm from accevolution (www.accevolution.net) and we've got the problem that our plugins are not showing up in premiere pro at about 30% of the customers machines. Our workaround at the moment is to tell the customers to install the most recent graphics card driver, launch premiere pro while holding down the shift key and if this doesn't help, to set the ignore flag in the registry here: 3. HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\11.0\PluginCache.64\en_US3. HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\11.0\PluginCache.64\en_US to "0".

 

Any suggestions why they are working perfectly on 70% and not showing up on 30%? From those 30% that have trouble are 99% windows-user, but we also got a few mac users with that problem.

 

It would be great if somebody could give me a hint.

 

Best regards,

 

Wolfram

How to tell if item is Adjustment Layer

$
0
0

I'm creating an extension and I need to be able to tell the difference between Adjustment layers and Color Mattes in the project bin. They just show up as stills in their metadata. Is there a way to do this?

 

I was able to figure out when an item is a Title as the codec shows up as "Titl" even though the MediaType shows up as "Still Image". But the Adjustment layers codec gives me "RAW " which is the same as a regular still image.

 

Is there a method that I'm not aware of to determine an items type?

Any help is greatly appreciated!

Thanks

Unsigned Panel Apps No Longer Open

$
0
0

So, everything's fine for months of panel app development.

 

Today I restart Premiere, and suddenly when I load a project that had my panel open, the panel appears blank. If I close and reopen it from Window -> Extensions, the window - docked or undocked - does not appear.

 

I tried loading the PProPanel example, same results.

 

output of defaults read /Users/<me>/Library/Preferences/Adobe/com.adobe.CSXS.7.plist:

{

    LogLevel = 1;

    PlayerDebugMode = 1;

}

 

Things I've tried:

Creating a new project

Restarting premiere

Deleting and re-adding panels to proper folder and restarting premiere

Flipping PlayerDebugMode to 0 and back to 1 and restarting premiere

Uninstalling and reinstalling premiere

Uninstalling all adobe apps, creative cloud, and reinstalling premiere

Logging in as a different user and trying to open the panel in premiere

 

However, I created a signed version of my app, and it loaded just fine.

 

Does this sound familiar to anybody?

 

I'm running MacOS 10.12.6, Premiere 11.1.2(22), and the panel app works fine in Windows 10 with the same adobe version, if any of that info is helpful.

 

Thanks!

-Nick

Adding metadata to custom Metadata Schema

$
0
0

Hi Bruce,

 

I see you've added the ability to add a metadata property to the Project Metadata Schema and populate it with data.  (Thank you!!)

 

Any work on being able to do this on a custom Metadata Schema?

 

thanks,

Kelly

Component API in Premiere Pro CC2017?

$
0
0

I noticed that the CC2017 update to Premiere Pro brought in a new Component API, which provides access to Clip Keyframes. Awesome.

 

The problem is that the API isn't documented. The nearest thing to documentation is Bruce Bullis' "Play With Keyframes" PProPanel sample. However, as used in that sample, the specifics about the API are super vague.

 

With most other Premiere APIs, the ExtendScript Toolkit's Object Model Viewer provides you with useful information like expected types or whether a value is readonly. The Component API is mysteriously missing from the Object Model Viewer, however. The only indication that it exists at all is that the TrackItem class contains a readonly components property of type ComponentCollection. I dove into this a little bit with some test scripts and was able to determine a bit more information about the APIs but I've not figured out everything. At this point I'd simply like to get input from those-in-the-know, rather than push for diminishing returns.

 

I've codified what I've found (and combined it with some info gleaned from the PProPanel project) into the TypeScript typings listed below. I'm pretty certain I've got ComponentCollection, Component, and ComponentParamCollection figured out. The ComponentParam class, however, contains a lot of incomplete information. By default I marked everything with no function parameters and a void return type.

 

declare class ComponentCollection
{    readonly numItems: number;
}

declare class Component
{
    readonly displayName: string;    readonly matchName: string;    readonly properties: ComponentParamCollection;
}

declare class ComponentParamCollection
{
    readonly numItems: number;
}

declare class ComponentParam
{
    readonly displayName: string;    addKey(): void;    areKeyframesSupported(): boolean;    findNearestKey(): void;    findNextKey(): void;    findPreviousKey(): void;    getKeys(): Array<Time>;    getValue(): number;    getValueAtKey(): void;    isEmpty(): boolean;    isTimeVarying(): boolean;    keyExistsAtTime(): boolean;    removeKey(): void;    removeKeyRange(startTimeSeconds:number, endTimeSeconds: number, shouldUpdateUI: boolean): void;    setInterpolationTypeAtKey(): void;    setTimeVarying(varying: boolean): void;    setValue(): void;    setValueAtKey(): void;
}

 

Could someone in the know help fill in the blanks here?

PProPanel Unsigned Loading - Windows regedit command missing?

$
0
0

When looking through the Github documentation, I see there is one important part missing (maybe that's why I cannot load the panel on my Windows machine?) -- for Mac there is a blurb about loading unsigned panels, but for windows there is no information available.

 

Bruce Bullis -- do you happen to have that command-line regedit command?


Video Shuttle Support via API?

$
0
0

I'm working on a Panel application for Premiere Pro where the user reviews metadata about a clip while the clip plays. We need to enable keyboard shortcuts for a lot of the same functionality that the program pane has (step forward/back 1 frame, play/stop, etc). Because of the limitations of keyboard shortcuts and panel focus, my panel application must handle these playback shortcuts explicitly.

 

The interactions I'm having trouble finding support for in the API is shuttle forward/back, increasing the speed of shuttle, etc.

 

I haven't been able to find anything using the Data Browser that looks like it might do this. The nearest thing I can think to do is to call setPlayerPosition() on an interval, making the playhead jump at approximately the correct rate. This seems overly complicated, and wouldn't have sound playback either, so it seems like a poor approximation.

 

Has anyone had experience with this?

 

Thanks,

-Nick

Trying to create a "partial preset"

$
0
0

I'm trying to modify a .prfpset file, (of .r3d source settings) to NOT USE any values for Kelvin, Tint, and ISO. I want these values to remain the same as they were BEFORE the preset is applied to a clip.

 

I've found the exact location(s) where I need to make this change. I just don't know what character(s) to put here! I've tried:

0

""

X

<CurrentValue>

<>

null

none

*

 

But, either the preset will refuse to import, or the value will be set to the lowest possible value. Does anyone know the correct text to use here?

 

Or, is there ANY way to specify that I DON'T want a specific value to change, when a preset is applied?

 

(Here's the long version: Taran is distraught over color grading .R3D footage in Premiere - YouTube )

QtCore4.dll and QtGui4.dll

$
0
0

Hello,

 

I have a question about Qt dll's. We createad a plugin for CS4 and CS5 using Nokia Qt 4.7.1 framework. It works fine, but we have to distibute our plugin with two dll's: QtCore4.dll and QtGui4.dll. We cannot put them next to .prm plugin file, because Premiere Pro will not try to find these dll's there - they should be in the same folder as "Adobe Premiere Pro.exe".  With CS4, we didn't have any problems with that, but we are having trouble with CS5. CS5 already has QtCore4.dll and QtGui4.dll, but they are old versions.

Our questions are - why does CS5 use Qt, for what purposes, and is it ok if we overwrite these dll's with new ones? Also, when we update PP CS5, it looks like it overwrites Qt dll's with old versions again. Is there any way to avoid it? Or is there any way to store and load dll's that we need from some other place (without using Qt static compilation, of course) ?

 

Thank you.

Bandwith limitation for shuttle function

$
0
0

Hello

 

I try to calculate the Maximum bandwith of an Premiere NLE.

Bandwith [Mb/s] = ClipBandwith [Mb/s] x Streams x RealtimeFactor

 

Question:

Is there a bandwith Limitation during shuttle?

 

Example:

If I shuttle 2x RT a 50 Mb/s File Needs 100Mb/s but if I shuttle 50x RT, the maximum bandwith is 4x.

Something like this.

export sequence as media file

$
0
0

HI,

I want to export sequence as media file i have tried something but that did not generate any output file and even not giving any error message

 

   // app.project.activeSequence.exportAsMediaDirect( "D:\\amit.avi","D:\\output_preset.epr",app.encoder.ENCODE_IN_TO_OUT);

   //app.project.activeSequence.exportAsMediaDirect( "D:\\amit.avi","D:\\output_preset.epr",app.encoder.ENCODE_ENTIRE);

//app.project.activeSequence.exportAsMediaDirect( "D:\\amit.avi","D:\\output_preset.epr",app.encoder.ENCODE_WORKAREA);

Viewing all 53010 articles
Browse latest View live


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