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

Bug in PPro panel SDK regarding project private metadata

$
0
0

Hello,

 

I was working with the PPRo 2017 project private metadata and I found that we could not persist custom metadata (those that are not present by default).

 

I used the official documentation provided here: Samples/PProPanel at master · Adobe-CEP/Samples · GitHub (modify project metadata) and even if I click save the project, whenever I re-open it, the newly created metadata is lost.

 

Is it intended or known?

 

Thanks in advance


Media Encoder Issue: auto-starting batch

$
0
0

Does anyone have any tips on sending multiple jobs to Media Encoder? I'm trying to send an array of subclips to Media Encoder using encodeProjectItem() but I'm running into a bit of an issue with Media Encoder automatically starting the batch.

 

For example: when I use PProPanel's function transcode but remove the line:

 

app.encoder.startBatch();

 

Media Encoder still starts the batch anyways. Is this normal behaviour? Or is there some way to tell Media Encoder to add the job, but don't run the encoding.

 

I've tried to get around it by using Bridge Talk to tell Media Encoder to pauseBatch() immediately after sending the clips over.

var bridge  = new BridgeTalk();
bridge.target = 'ame';
bridge.body   = 'var host = app.getEncoderHost();if (host){host.pauseBatch();}';
bridge.send();

 

But that seems like a clunky way of doing this.

This is important to me as I will want to have the ability to manually modify outputs on specific clips before starting the batch.

 

If anyone has any tips on this it would be greatly appreciated!

Thanks!

Why is console undefined in com.adobe.PProPanel?

$
0
0

If I add a console.log statement to the PProPanel > Premiere.jsx file then when running in PP I get "script error: console is undefined" when I'm using Chrome and viewing on the port defined in the .debug file.

 

But if I add console.log to this example

https://github.com/ThomasSzabo/Minimalistic-Adobe-Premiere-Pro-Panel

 

then it works as expected.

 

Sure I can use $.writeln() and view a log in ExtendScript Toolkit, but why doesn't it work in PProPanel?

Editing clips with ExtendScript

$
0
0

hello, you hardworking, knowledgeable people!

 

I desperately need to automate a big part of the editing process in Premiere.

For the next project we will be recording tons of footage, where the main action on video will be repeating with variations many many times. We then need to split the long recordings into separate chunks. I will be able bring in time markers, for where to make the cuts.

But I've hit a wall when trying to manipulate clips on the timeline with ExtendScript. I can read a bunch of info about the clip, e.g.:

start

end

inPoint

outPoint

(.seconds and .ticks)

But I'm unable to change any of those values. And the only functions I've found deal with selecting a clip i.e. isSelected() and setSelected()

 

Are there any ways to trim/cut/move, whatever, clips on the timeline using ExtedSctipt scripts, or am I badly out of luck?

And to finish off what I'm trying to do I'll need to do something like "Make Subsequence" with all of the cuts, to separate them into their own videos I can then export, again looking to automate this.

 

Many thanks!

Node Enabled by Default in 2017.1?

$
0
0

We've begun to take advantage of the Node integration in a Premiere Pro Panel. Based on the documentation, it seems as though CEP 7 supports the following two flags for the CEFCommandLine:

 

  1. --enable-nodejs - According to the documentation, this is disabled by default.
    • [Side Note: the CEP Cookbook PDF contains this Adobe-internal link for "Customize CEF Command Line Parameters".]
  2. --mixed-context - According to the documentation, this is disabled by default.

 

Before attempting to use any Node APIs, I enabled both of those in the manifest.xml for our panel and restarted Premiere Pro (2017.1). Everything worked great.

 

The documentation does not specify if the above two flags are interdependent or not. To test, I decided to remove both flags to ensure that I would get an "undefined" or some other error in our console output. Instead, I was surprised to find that the APIs worked without issue! It appears as though I'm currently able to use the Node integration without specifying any special CEFCommandLine flags!

 

What am I missing here?

TypeScript application and Webpack bundling

$
0
0

I'm looking to build an angular app (my enviroment is VS2017) with some libraries and having some difficulties with the appropriate configuration.

Can someone provide the minimum webpack config file which one should use, considering a TypeScript-based application is built and bundled?

 

I've looked at sberic's Node enabled post and think there're things that I misunderstood and have trouble to adjust to my setup.

I'm not sure how to configure webpack config file based on the above post, and when should it be used in the first place.

 

Thanks

Dummy importer

$
0
0

Hi folks,

 

I'm trying to write a dummy importer that would essentially only put a file pointer in the project for reference and archival purposes, like FCP XML translations results text file which gets imported into the project.

 

I thought that perhaps setting hasVideo and hasAudio as false would do the job, but I keep getting the "Importer returned generic error" in Premiere and "file cannot be imported - this file is damaged or unsupported".

 

Currently the entry function looks like this:

     switch (selector)     {          case imInit:               result =     SDKInit(stdParms,                                        reinterpret_cast(param1));               break;          case imGetInfo8:               result =     SDKGetInfo8(stdParms,                                             reinterpret_cast(param1),                                             reinterpret_cast(param2));               break;          case imGetIndFormat:               result =     SDKGetIndFormat(stdParms,                                                  reinterpret_cast(param1),                                                  reinterpret_cast(param2));               break;          case imGetIndPixelFormat:               result = imUnsupported;               break;          // Importers that support the Premiere Pro 2.0 API must return malSupports8 for this selector          case imGetSupports8:               result = malSupports8;               break;     }     return result;
}

 

And only these 3 selectors are supported:

imInit

imGetFormat

imGetIndFormat

 

imInit and imGetIndFormat work fine, because the importer is added to the list, and attempts to open the file. And the imGetFormat looks like this:

 

          prMALError                         result                    = malNoError;     SDKFileInfo8->hasAudio               = kPrFalse;     SDKFileInfo8->hasVideo               = kPrFalse;     return result;

 

Obviously I'm missing something, can anyone help me?

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.


My extension fails to install with status = -403 and -156

$
0
0

I'm struggling with getting my extension to install using ExManRoot. It's an extension for Premiere Pro CC 2015, and is meant to be compatible with version 9.0 and upwards.

 

Here is my manifest:

<?xml version="1.0" encoding="UTF-8"?><ExtensionManifest Version="5.0" ExtensionBundleId="com.thedinermusic.thediner" ExtensionBundleVersion="1.0.0"  ExtensionBundleName="The Diner" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  <ExtensionList>  <Extension Id="com.thedinermusic.thediner" Version="1.0" />  </ExtensionList>  <ExecutionEnvironment>  <HostList>            <Host Name="PPRO" Version="[9.0,10.9]" />  </HostList>  <LocaleList>  <Locale Code="All" />  </LocaleList>  <RequiredRuntimeList>  <RequiredRuntime Name="CSXS" Version="6.0" />  </RequiredRuntimeList>  </ExecutionEnvironment>  <DispatchInfoList>  <Extension Id="com.thedinermusic.thediner">  <DispatchInfo >  <Resources>  <MainPath>./index.html</MainPath>  <ScriptPath>./jsx/import.jsx</ScriptPath>                    <CEFCommandLine>                        <Parameter>--enable-nodejs</Parameter>                    </CEFCommandLine>  </Resources>  <Lifecycle>  <AutoVisible>true</AutoVisible>  </Lifecycle>  <UI>  <Type>Panel</Type>  <Menu>The Diner</Menu>  <Geometry>  <Size>                            <Height>420</Height>  <Width>620</Width>  </Size>  </Geometry>  <Icons>  <Icon Type="Normal">./icons/dinericon.png</Icon>  <Icon Type="RollOver">./icons/dinericon.png</Icon>  <Icon Type="Disabled">./icons/dinericon.png</Icon>  <Icon Type="DarkNormal">./icons/dinericon.png</Icon>  <Icon Type="DarkRollOver">./icons/dinericon.png</Icon>  </Icons>  </UI>  </DispatchInfo>  </Extension>  </DispatchInfoList></ExtensionManifest>

 

I used ZXPSignCmd (following these instructions) to sign and package my extension into a ZXP file. I then attempted to install the package using ExManRoot, but got the error: "Failed to install, status = -403!"

 

Thinking it had to do with the fact that I hadn't set an install location for the ZXP, I tried uploading the ZXP file I just made to my developer portal using the online packager, with the following settings:

 

Screen Shot 2016-07-05 at 12.03.51 PM.png

I then downloaded the ZXP file it generated through the developer portal, and attempted the install again. This time I got the error: "Failed to install, status = -156!"

 

Can someone tell me what these errors mean? No amount of Googling has led me to an explanation as to what status codes 403 and 156 are.

 

My first thought is that, as you can see in my screenshot, the online package automatically downcases the install location. I entered $adobecommon/CEP/extensions in the "custom location" dialogue, but it changes it to @adobecommon/cep/extensions. I believe this is an issue on Mac due to files and folders being case-sensitive (I'm testing on a Mac running Yosemite). Perhaps that's what's going on? If so, how can I force it to use the proper case?

 

I'm at a total loss here. Been trying to package/submit this extension for months now. Anyone who can help me get this damn thing accepted by the review process will officially be my best friend for life.

Can we integrate Adobe premiere pro or final cut pro in a eCommerce website?

$
0
0

We are planning to build a eCommerce website for music licensing. That ecommerce website can be done either in Magento or in X-cart.

So for the same we wanted to confirm that can we integrate Adobe premiere pro or final cut pro in our website of Magento or X-cart? These tools we wanted to use for give option of video, audio editing, extracting.

So please share your thoughts and API details if any from which we can integrate any of them from Adobe premiere pro or final cut pro with Magento or X-cart.

Thanks in advance.

Javascript error that happens in Premiere but not in Chrome.

$
0
0

Hi,

 

I am working on a Premiere Pro panel and I basically want to upload a selected file from the current project to a remote server. Using a html input file tag and select a file works fine to upload a file. 

 

So my idea was to create a File object which i would then upload.  Something like :

upload() {

    var path = '/Users/me/my_file.mp3';

    // read all bytes from file likely using : window.cep.fs.readFile(path)

    var file = new File ([data], 'my_file.mp3');

     // call POST to start upload. That part is done and work.

}

 

As I am going step by step, my current code looks like :

upload() {

    var file = new File( ['my random content'] ,'random_name.txt');

     // call POST to start upload. That part is done and work.

}

 

It works works fine if run it in up to date Chrome (I also tried with an much older version (41.0.2272.89), which works too). Unfortunately, it crashes in Premiere and I have no clue why.

 

The crash happens on this line :

var file = new File(['my random content'], 'random_name.txt');

(a basic copy/paste in chrome console show that it works on regular chrome, and crash when paste in the remote debug console.)

 

with this error message :

Uncaught TypeError: File constructor cannot be called in nwdisabled frame.

message: "File constructor cannot be called in nwdisabled frame."

stack: (...)

get stack: function () { [native code] }

set stack: function () { [native code] }

__proto__: Error

VM110:2(anonymous function)

VM77:847InjectedScript._evaluateOn

VM77:780InjectedScript._evaluateAndWrap

VM77:646 InjectedScript.evaluate

 

Any explanation and suggestion to work around that issue would be greatly appreciated.

exmancmd /install panel.zxp getting -411

$
0
0

Hi All,

 

When we try to install panel in a specific environment in all the systems we are getting -411 error, which denotes compatible app not found

We can still open the Premiere pro in the same machine.

We tried to install the panel for 2017.0.1 and 2017.0.2 both are not working in this specific environment with windows os.

 

On further checking we found

that when we try the /list all command its not showing all the products name in the command prompt

exmancmd /list all

0 extension installed for others

status     extension name version

------------------------------------------

 

but in other environments we get

 

0 extension installed for Photoshop cc 2017 64

status     extension name version

------------------------------------------

0 extension installed for Premiere Pro CC 2017

status     extension name version

------------------------------------------

 

 

Can someone give a solution for this

Thanks and Regards,

Anoop NR

RegisterKeyEventsInterest Intermittently Not Working?

$
0
0

Last week my panel was properly responding to keyboard input. I would click into it and could get listener callbacks when hitting certain keys for which I'd registered interest with CEP.

 

Today I started up Premiere (it had actually been up for quite a while, including while the computer slept, but I've shut it off and turned it on again) and found that the CEP panel would not respond to any of the keyboard events. Pressing just about any key while the panel is focused results in a "boop" sound effect (I'm on a mac) and no response from the panel.

 

As an example, I'm "registering interest" using:

 

cs.registerKeyEventsInterest('[{"keyCode": 0x0F}]');  // 0x0F is "r" for the mac.

 

And then adding an event listener with:

 

document.body.addEventListener('keydown', handleKeyEvent, false);

 

Has anyone else encountered this? What could suddenly cause Premiere Pro to stop properly passing keyboard events on to the panel?

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?

Parameter types for Track.insertClip and Track.overwriteClip?

$
0
0

What are the parameters for the Track.insertClip and Track.overwriteClip functions? Specifically I'm interested in understanding what parameters are allowed, what parameters are optional, parameter types, and the return value, if any, of the functions.

 

Here's what I've been able to glean [in TypeScript format] from the Premiere.jsx examples:

 

// insertClip's second parameter can be either a number or a string.

insertClip(clipToInsert: ProjectItem, timeInSeconds: number): void;

insertClip(clipToInsert: ProjectItem, time: string): void;

 

// overwriteClip only has a single example (using a number for the

//  time).Does it also accept a string?

overwriteClip(clipToWrite: ProjectItem, time: number): void;

 

The stuff I'm unsure of is colored red.

 

Further, any documentation about what the APIs actually do would be very useful. For instance, if the time specified for overwriteClip is in the middle of another clip on the Track, does the entire clip get erased and the current clip inserted at the specified location, or is the existing clip get truncated at the point specified before insertion?

 

Thanks!


What is the best way to open a custom window in selector 'PF_Cmd_DO_DIALOG'?

$
0
0

Hello,

I'm using the After effect SDK to develop a video effect plugin (both for Premiere and AE) and I'd like to open a custom window when the user clicks on Screen Shot 2017-06-20 at 11.41.19.png (during PF_Cmd_DO_DIALOG selector and typically to allow the user entering its activation keys).

 

After searching the forum it seems that the best way is using JavaScript by installing the Premiere Pro/After Effect SDK for panel scripting. I'd like to know if this is the best way to do that or is there an easier way?

 

Thx for your help!

How to fetch frame rate of a project item?

Authorized Javascript Origins for Google API

$
0
0

Hello,

 

I'm working on a Premiere Panel that will make a call on the Javascript side to the Google Sheets API. I'm using their quickstart guide as a template to get me started.

 

In order for the API to work, I need to whitelist "the origin URI of the client application," in other words, where will Google's API see that the request is coming from. For example, in the quickstart project, Google has you starting a server at http://localhost:8888 and that's what you enter into the API whitelist. At the moment, my panel is failing silently at the point when it should be setting up the Google API authorization and I think the issue is that I don't have the proper origin whitelisted. Does anyone know what the appropriate URI and port would be?

 

Thank you very much in advance.

Plugin stopped working after upgrade to PPro 12.0.0

$
0
0

I'm on Mac OS Sierra using CEP 6

Tried upgrading to CEP 7, so far without success.

 

The extension does appear under Menu Bar > Window > Extensions but the panel comes up blank.

It was working fine immediately before upgrade, then stopped working immediately afterwards.

 

Any ideas how best to trouble-shoot?

Control Plugin for Premiere Pro

$
0
0

Hi Guys,

 

I was thinking, is it possible to directly control Premiere Pro elements like buttons or sliders via a plugin? Background is, I would like to use my Korg Nanopad to control different mute buttons and especcialy the audiotracks' surround panner with the integrated midi touchpad and did not find any keyboard commandos for that.

 

thanks for answers and regards,

Daniel

Viewing all 53010 articles
Browse latest View live


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