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

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


changing clip in and out points using project metadata

$
0
0

In a question asked here before, a user asked how to change a clip's in and out points, and/or it's start and end points in a sequence.

There was a very short answer - "no."

 

There's the modifyProjectMetadata example in PProPanel, could it be used to change an inPoint in a projectItem,

so that one could later put the project in a sequence, with the specified in and out points?

 

Thanks

CLEAR Method for IN/OUT points

$
0
0

Is there a CLEAR method that clears the IN/OUT POINTS after setInPoint and setOutPoint?

Can "documentID" be used to search across projects?

$
0
0

Hello All,

 

 

Is the property "documentID" (which is in app.project) immutable? Can we use it to search a project from projects available in app.projects?

 


Premiere Pro Version: 12.0.0
Extension Type: Panel

 


Thanks & Regards,
Meet Tank

evalScript taking some time to give back the control to the caller being asynchronous

$
0
0

Hi,

 

I'am calling csInterface.evalScript() which in turns calls a synchronous function inside a c++ library and i logged the time before and after  calling the  csInterface.evalScript() and also on getting the result, following is my observation:

 

Screen Shot 2018-01-22 at 11.49.35 AM.png

There is a delay of 211 milliseconds before and after calling the evalScript, being asynchronous isn't it supposed to give the control back immediately?My understanding of evalScript was that it should give the control back immediately and give the result whenever it is available but in this case it is happening the other way round, it is taking some time to give the control back along with the result(like a synchronous function).

 

Issue in marker created on the last frame

$
0
0

Hello All,

 

We have created a marker on the last frame of the footage using premiere pro sdk. The marker is neither available at "Markers" panel nor at "Timeline" panel in premiere pro. However, the marker is there in the "Source" panel.

 

I am not sure whether it is an issue in premiere pro sdk or Premiere pro UI itself. Has anyone noticed this issue before?

 

Premiere Pro Version: 11.1.2

Extension Type: Panel

 

Thanks & Regards,
Meet Tank

Render Quality (w.r.t. Exporter's video src)

$
0
0

Zac,

 

can you explain the backend consequence of the different Render Qualities:

 

/**

** Render qualities

*/

typedef enum

{

kPrRenderQuality_Max = 4,

kPrRenderQuality_High = 3,

kPrRenderQuality_Medium = 2,

kPrRenderQuality_Low = 1,

kPrRenderQuality_Draft = 0,

kPrRenderQuality_ForceEnumSize = kPrForceEnumToIntValue

} PrRenderQuality;

 

And how orthogonal it is to the PixelType requested?

 

For example, one would assume that Draft mode should work as fast as possible by using the YUVA_8u PixelFormat whereas MAX mode would work in YUVA_32f and thus YUVA_32f PixelFormat should be requested in the supported PixelFormat type supported by the Exporter.

Always asking for YUVA_32f is a waste of processing time so that shouldn't be at the top of the supported PixelFormat list unless you really want it at max bit depth.

 

As an example - the shipped "h.264" exporter has a "Render at Max Depth" button. What RenderQuality does it set and what PixelFormat does it put in the list - and in which order - when enabled and disabled?

 

thanks,

 

Rallymax.

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.


Using reflection to discover method parameters in Premiere?

$
0
0

Hi,

 

I am trying to use the ExtendScript Toolkit to discover what APIs Premiere supports.

I can use reflection to discover both properties and methods.

However, when finding a method, I cannot see how to determine what parameters it takes (unless its used in the PProPanel example, there is no documentation).

 

For example: I'd like to set In & Out points in the source clip window.

I can see: qe.source.clip.setInPoint is a function, but how do you call it?

 

I'd also like to set the current position in the source clip window.

I can't see how to do this at all ???

 

Any clues?

 

Cheers,

 

James.

 

Ps I am using 'ticks' when calling app.project.activeSequence.setPlayerPosition. Any definition of num ticks per second?

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?

Get Selected Item(s) in Project Panel

$
0
0

Going through the examples and documentation, I couldn't find a function or value to tell if a folder or footage item is selected or access that item in the Project Panel of Premiere Pro. Closest thing I found was .select() which only selects the item you have coded. Has anyone had any success with this? Thanks!

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?

HDR video export...

$
0
0

How do I get Premiere to give me high range pixels out of ->RenderVideoFrame() ?  I have selected the PrPixelFormat_BGRA_4444_32f pixel format, so I assumed I would get pixels with values above 1.0f (using some high color depth Red files).  Is there another flag I need somewhere?

 

Thanks!

Scripting - Adding effects

$
0
0

Using ExtendScript, I need to add a Lumetri Color effect to a clip and set the Input LUT to a specific file. I can see the ComponentCollection for the clip, and it looks like the effects are items in this collection. Is it possible to add new effects to a clip, and how do you set their parameters?

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

New UI font in CC 2018

$
0
0

Which font is being used now? Same or different across macOS and Windows?

how to know which track a clip is on?

$
0
0

Is there any method (normal or QE) to know which track is a clip on, except by going through all of the tracks?

 

Something like clip.track or clip.trackID?

 

The scenario is I want to replace a selected clip with something else from the project panel.

The clip is linked to some audio (or the other way around).

 

I want to replace the linked clip(s) as well, but don't know which tracks they belong to, so wouldn't know on which track(s) to insert (overwrite) the stuff from the project bin.

 

Maybe I could loop over all of the tracks, and see if anything has same properties as the clips from the getLinkedItems, or if the getLinkedItems points of other clips point at the selected one, but I'm sure there must be something better, and besides this method wouldn't work in some cases with duplicates.

 

Come on, premiere knows, so why can't we?

"insertClip and importMGT" can specify the clip duration?

$
0
0

*Sorry, i am poor at English because I am a Japanese.

 

Hi, everyone

 

I want to insert Image and MGT in a certain section.

By changing "start" and "end" after insertion, the duration could be changed.

In this method, the clip overwritten by the insertion disappears.

So , i want to insert with specify the clip  duration.

 

Could you tell me if you know anythings.

 

 

Exporter: how to programmatically enable/disable exporting the audio track?

$
0
0

Hi there,

I am writing an exporter starting from the SDK_Exporter example, and I would like to programmatically disable exporting the audio track when the source file has no one.

I have seen that I can check the presence of the audio track inside the file by querying PrSDKExportInfoSuite on exSDKGenerateDefaultParams.

But now I do not know how and where to set the value.

I have tried to set it on exDoExportRec inside HandleOptionalExportSetting, on exQueryOutputSettingsRec inside exSDKQueryOutputSettings, on exParamChangedRec inside exSDKValidateParamChanged, and on exPostProcessParamsRec inside exSDKPostProcessParams, but none of them is working..

Could someone give me some advice?

Thank you,

S.

Viewing all 53010 articles
Browse latest View live


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