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

how to add plugins from premiere pro sdk into adobe premiere pro

$
0
0

I have downloaded premiere pro sdk and want to get familiar with plugin development, so how do i use plugins from premiere pro sdk into premiere pro.

I don't know how to use those plugins in the premiere pro sdk.

I am using macBook pro(16GB RAM, 2.2 Ghz, intel core i7).

How to develop it using Xcode.

They have given a documentation on that but its poorly documented.


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

Importing images as a sequence in Adobe Premiere Pro using extendscript

$
0
0

So I've been looking around and trying to find a way of importing image sequences in Adobe Premiere Pro using extendscript.

I can import separate single files using: app.project.importFiles(new Folder(folder_path));

But I can't give an option of importing these images as a sequence.

I tried using opts = new ImportOptions(new File("path_to_image")); opts.sequence = true; and calling this within app.project.importFiles(opts) but Premiere doesn't seem to support ImportOptions, I keep getting an error stating "Import Options does not have a constructor"....

I'm assuming Premiere Pro doesn't support ImportOptions?

Is there any other way of importing an image sequence using app.project.importFiles?

Thanks!

Passing information from jsx to js.

$
0
0

Hello Community,

I have a problem with passing information from jsx to js file.

 

my jsx file:

$.extendScript = {  test : function() {    return "string";  },
}

 

my js file.

(function () {    var cs = new CSInterface();    var variable = "";    cs.evalScript('$.extendScript.test()', function(result) {       variable = result;       alert("variable in evalScript =" + variable);     });    alert("variable in outside = " + variable);    
}());

 

In evalScript function the variable get's the string from jsx function but when I want to use it outside I get empty string again.

Also I get the alert outside evalScript first in order. Why this happens?

 

 

Does anyone know why this happens and how to fix this?

Best Regards

Common location for a plug in installer / Media Encoder Plugin Loading.log ?

$
0
0

Hi there,

I have a problem loading a plugin from After Effects and Media Encoder with Premiere not installed:

1. From the After Effects SDK guideline I read that "Installing your plug-ins in the common location will allow them to be loaded by Premiere Pro, if installed."

I am creating a Premiere Import plugin, which if I understood correctly should work on After Effects too. Now here is my question: will After Effects and Media Encoder look in the "/Library/Application Support/Adobe/Common/Plug-ins/7.0/MediaCore/" folder even if Premiere is not installed? If not, when writing an installer, should I put a copy of the plugin in both After Effects and Media Encoder plugin folders too?

2. is there a plugin loading log for Media Encoder? I can locate the ones for After Effects and Premiere, but not the one from Media Encoder.

Thank you for any help,

S.

Adjust audio levels of a clip with ExtendScript

$
0
0

Hey folks, I'm just starting out trying to learn some scripting and so I'm not entirely sure what's even possible yet, but one thing I'm trying to figure out is if it's possible to select multiple clips in a bin, then run a script and set all of their audio levels to a pre-defined value. Browsing around, I can't really find any attributes related to this, but like I said, I'm just starting to learn.

 

Thanks! 

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?

How to add effects to clips in Premiere with CEP/ExtendScript?

$
0
0

I'm fairly new to CEP and ExtendScript, though a long-time old-school plug-in developer.

 

Looking at the APIs (http://ppro.aenhancers.com/), I don't see how to add an effect to a clip in Premiere Pro -- how would I do that?

And/or: how can I change the params of the built-in effects, e.g. motion position & scale via the API?


Premiere Pro importer plugin loaded successfully but file still not supported?

$
0
0

Dear all, I am new to Adobe Premiere Pro plugin development and I developed a custom file importer plugin for Premiere Pro CC recently. But in some of my client machines the plugin can be loaded successfully by Premiere Pro according to the log file as following:

 

Loading C:\Program Files\Adobe\Common\Plug-ins\7.0\MediaCore\CustomImporter.prm

The registry tells us not to cache so the plugin will be loaded from disk.

Loading from disk...

This plugin was recognized by loader ba1058cd-0007-44e4-bf1a-0ef51307b979.

 

Curiously, when I try to import custom file into Premiere Pro, it warns that the file is not supported by Premiere Pro. But in my development machine it works like charming. I can't figure it out why did that happen? I developed this plugin in Windows 10 with Visual Studio 2015, and I tested the plugin in Premiere Pro 2019. The plugin SDK is also updated. Does anyone has the same issue? It would be very nice to give some advice...

 

Thank you very much.

How to export an EDL from a timeline using ExtendScript

Premiere Pro Scripting: Set In and Out Points of Clip

$
0
0

Suppose I have a 2-minute long media file and an empty timeline for the currently active sequence.  Now, suppose I want to write a Premiere Pro script that will put that media file at the beginning of the timeline, but it should start playing 45 seconds into the clip and end exactly 10 seconds later (at 55 seconds into the clip).  It would be the equivalent of this:

 

D0NFMRQ.png

(In this image, we see that the footage is 2 minutes long, the first 45 seconds of the footage are trimmed off, and it only plays for 10 seconds).

 

I would like to achieve this through scripting, but I'm not sure.  I tried something of this order, but it did nothing more than simply put all 2 minutes of the clip into the sequence timeline:

 

var file1 = "C:\\Path\\test.mxf"
var backsBin = app.project.rootItem.createBin("Backs")
app.project.importFiles([file1], false, backsBin);
var thisTrack = app.project.activeSequence.videoTracks[0];
var projItem = backsBin.children[0];
thisTrack.insertClip(projItem, 0); // second arg is time in seconds to insert at
thisTrack.clips[0].inPoint.seconds = 45
thisTrack.clips[0].outPoint.seconds = 55

 

What is wrong with my code, and what can be done to fix it?  It seems like there's no way to set in and out points, as those last two lines don't seem to do anything.  I am on Windows 10, PPro CC 2017.1.2 for reference.

How to check given path isFile or isDirectory in jsx?

$
0
0

Hello,

 

I want to check that given path is File or Directory in a jsx.

 

The 'isFileExist' function only check that path is exist or not in the file system.

I want to check it is 'folder' or 'file'

 

For example,

          path = 'd:/folder1' then isFile method should return 'false'

          path = 'd:/folder1/1.epr' then isFile method should return 'true'

 

How can I do that? I am using below code.

isFileExist : function(path) {     var file = new File(path);  return file.exists;
}




isFile : function(path) {
          //How can I check that path is 'file' or 'directory'?          
}

 

Premiere Pro version 11.0

How to get parent projectItem (bin) of a projectItem (sequence)?

$
0
0

I'm trying to clone() a sequence into the same bin as the original sequence.

 

When using clone() it places the copy of the sequence in the root of the project.

 

Is there a way to get the parent projectItem (bin) from the sequence projectItem to use in moveBin()?

 

I've tried to use the treePath of the sequence to get the name of the bin and then use the searchForBinWithName() function.

This did work, but in projects where there are multiple nested bins with the same name it won't be reliable.

 

Thanks : )

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?

Premiere Error trying to setCTI

$
0
0

I get this error when trying to put a marker's seconds value into setCTI (line 16)

 

Premiere Error:

[/Tanqueray/releases/2016.10/shared/adobe/MediaCore/MediaLayer/PlayerHost/Src/VideoPlayerP roxy.cpp-666]

 

setCTI works when I put in a value like "20.0" but it will crash if I try to input a var number.

prevMarker : function() {  app.enableQE();   var qeActiveSequence = qe.project.getActiveSequence();  var CTITime = qeActiveSequence.CTI.secs;  var activeSequence = app.project.activeSequence;  if (activeSequence) {       var markers = activeSequence.markers;       if (markers) {            var numMarkers = markers.numMarkers;            if (numMarkers > 0) {                 var current_marker = markers.getFirstMarker();                 while(current_marker.start.seconds < CTITime){                      current_marker = markers.getNextMarker(current_marker);                 }                 var previousMarker = markers.getPrevMarker(current_marker).start.seconds;                 qeActiveSequence.setCTI('"'+previousMarker+'"');            }else {                 alert("No Markers");            }       }  } else {       alert("Select a sequence");  } 
},

 

What is the appropriate input for setCTI?


Javascript API to change Premiere Pro Lumetri color

$
0
0

Is there any Javascript API available to change the Premier Pro Lumetri Color programatically.

AWS S3: Download media file get corrupted

$
0
0

Hi All,

 

I am trying to download media file (image or video) from AWS S3 using nodejsaws-sdk module. The file is downloaded but I couldn't open as it looks corrupted. Also noted that file size is not same as source file. Refer below code:

 

 

var AWS = require('aws-sdk');

var options = {
accessKeyId: "XXX",
secretAccessKey: "XXX"
};
var s3 = new AWS.S3(options);

var bucketName = 'test-bucket';
var keyName = 'test.jpg';
var params = {Bucket: bucketName, Key: keyName};

var fsModule = "fs";
var fs = require(fsModule);

// This requires when running this code in panel
AWS.util.stream = require('stream');

var writeStream = fs.createWriteStream('D:/test.jpg');
var readStream = s3.getObject(params).createReadStream();

readStream.pipe(writeStream);

 

I have added aws-sdk node module in my extension folder.

 

Note:
(1) I can download and open txt file without any issue
(2) If I run this code outside panel context (run in local nodejs server) it works for all type of files including text and media!!

 

 


Premiere Pro version: 9.0.0
Extension Type: Panel

 


Thanks & Regards,
Meet Tank

move or copy a clip to another sequence

$
0
0

hi, is it possible to move a clip from a sequence to another sequence with the script? if not can you add this feature in backlog ? also it will be so useful if you add a possibility (refer to PPRO sample panel in github) to drag and drop project items.

 

thanks!

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.

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

Viewing all 53010 articles
Browse latest View live