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

How do I add imported files into sequences using Premiere Pro's ExtendScript connection?

$
0
0

Really want to know the answer to this.... I'm trying to create a script (in ExtendScript for Premiere Pro) that will load in specified video files, clip them at specified start and stop times, place them into a sequence, and then export the resulting movie.

I understand that Adobe doesn't have official documentation about scripting for Premiere Pro, so I've been working from the data browser (in the ExtendScript Toolkit, or ESTK) and a collection of handy references I've found at links like this:

http://webcache.googleusercontent.com/search?q=cache:http://cssdk.adobesites.com/sdk/2.1/d ocs/WebHelp/references/csawlib/com/adobe/premiere/App.html

(You can replace the "App" there with other class names, but they always have to be correctly capitalized, like "Project" or "TrackCollection". The pages list properties and methods for the classes, and are the only place I've been able to find what kind of parameters/arguments the methods expect.)

I have successfully loaded in the CSV file that specifies the needed info. I also know how to import the video files and create a new sequence (as explained here: http://forums.adobe.com/thread/1177191). The trouble I'm having now is getting the imported files clipped correctly and placed into the sequence. (I see that the activeSequence has methods like setInPoint and setOutPoint, but that doesn't seem to result in the correct trimming upon export.)

Here is my code (with comments to show flow of overall script):

#target premierepro var myDir = "G:\\directoryWithVideoFiles\\"; // defined "indexOf" subfunction here // ***** begin main body of script ***** // (dataRuns has fields runName, startVideo, startTime, stopVideo, stopTime) // Import video files listed in dataRuns var vidFiles = new Array; for (i=0; i<dataRuns.length; i++) { if (indexOf.call(vidFiles,myDir + dataRuns[i].startVideo + '.MPG') == -1) { vidFiles.push(myDir + dataRuns[i].startVideo + '.MPG'); } if (indexOf.call(vidFiles,myDir + dataRuns[i].stopVideo + '.MPG') == -1) { vidFiles.push(myDir + dataRuns[i].stopVideo + '.MPG'); } app.project.createNewSequence(dataRuns[i].runName,''); } app.project.importFiles(vidFiles); // at this point, for each run (called runName) I need to: // - take a clip of the startVideo from the startTime to the end of the video // - take a clip of the stopVideo from the start of the video to the stopTime // - put clip 1 at the beginning of the associated sequence, & clip 2 right after // - export the sequence as a new video file


Get info for clip loaded in source monitor using ExtendScript

$
0
0

Hello,

 

So, the short version: I was wondering if there's a way to get information about the clip currently loaded in the source monitor using ExtendScript. Specifically, I'd be interested in the name, starting timecode, and in/out points. I don't see anything obvious in the Data Browser in ExtendScript Toolkit, but I thought I would ask.

 

The long version of what I'm trying to do: I have a clip in the source monitor that I know is in the active sequence. I'd like to take the in/out points of the source clip and set those as in/out points in the sequence. This is sort of a hack to get around the fact that you can't associate speech analysis with a multicam clip so I'm cutting with one of the audio clips in the multicam clip and then I'm trying to translate those edit points to the multicam sequence. I have a way to do it with an AppleScript macro, but I'd like to find a more robust (and cross-platform) solution.

 

Thanks!

New Premiere Pro CC 2015 Plug-in SDK posted

$
0
0

Hi all,

 

We've just posted a new plug-in SDK to the DevNet site.  The headers are up-to-date with the latest CC 2015 (9.0.1) release, there are new and updated sample projects, and the PDF documentation describes what has changed since the previous SDK release.  The download page has an abbreviated list of these changes.

http://www.adobe.com/devnet/premiere.html

 

Enjoy!

 

Zac

Licensing an adobe html5 extension

$
0
0

I'm trying to understand how licensing of an extension work in adobe exchange. I've now created a small extension for premiere pro cc. It's in a .zxp format with a self signed certificate. I want this extension to be installed per machine.

Is it handled by adobe exchange completely or do I need some custom licensing ? But I'm not sure how to add it.

It's purely a javascript extension, so I'm little skeptical about it being tampered or copied over on to other machines. Please suggest.

About develop a record plug-in of premiere

$
0
0

I want to develop a record plug-in of premiere,how do i show video in capture dialog? I did not found any way to give data to preview area

Adding (unsupported) keyboard shortcuts to Premiere Pro?

$
0
0

A few months ago, I created a 30-minute video that goes into great detail about all sorts of missing features in Premiere Pro. Some of these features have been requested by users for over ten years, and still have not made it into Premiere... features like saving a custom transition, a shortcut to delete transitions from the timeline, a shortcut to add a keyframe.... the list goes on.

 

You can watch my video, or you can just read the video description to see a quick list of the 57 missing features that I talk about.

 

Adobe Premiere CC 2014.2 massive feature request video! (1/2) - YouTube

 

I mention in the video that modding Premiere may be the only way to get these features into the program, as long as the developers refuse to add these features for whatever their reasons might be.

I am particularly interested in adding unsupported keyboard shortcuts, as it seems like the easiest thing to do, with the greatest benefit. Here's a list of the features I am hoping to add in by myself:

 

#1. Every transition should have a keyboard shortcut to apply it

#3. Allow keyboard shortcuts to apply all PRESETS, EFFECTS, TRANSITIONS, and (new) TRANSITION PRESETS

#5. A shortcut to delete (only) transitions

#6. A shortcut to reverse a clip -- (This can be done with AutoHotKey)

#7. Shortcuts for the keyframe right click menu items

#8. Shortcuts for all "effect controls" buttons

#9. Shortcuts for layer controls in timeline (mute, lock, etc.)

#11. A shortcut to just PLAY video

#12. A shortcut to ripple delete clip at playhead -- (This can be done with AutoHotKey)

#14. Effects panel search bar shortcut -- (This can be done with a crazy macro script, but still does not work 100% of the time)

#16. A shortcut to close the reference monitor

#17. A shortcut to close the titler

#18. A shortcut for "back" in bin icon view

 

So, I downloaded the plug-in software SDK from here: Premiere Pro Developer Center | Adobe Developer Connection ... but frankly, I have very limited programming experience. (Dammit Jim, I'm an editor, not a programmer!) Reading through the documents, however, I don't see ANYTHING that even mentions the words "keyboard" or "shortcut..."

 

It's looking to me as if the SDK only has support for creating new transitions to be used in Premiere, and creating new effects like the Red Giant denoiser. Am I right? am I wrong?

 

Is it POSSIBLE to use the SDK to add any of these keyboard shortcuts to Premiere? I don't care how difficult it is. (unless it involves having to decompile the whole program into machine code, which I still might be mad enough to at least try.)

 

I am determined to get these long-overdue keyboard shortcuts into Premiere. I just need to know if it's possible. If it is, I'd greatly appreciate any and all guidance you could give me to make this happen.

 

Thank You,

Taran van Hemert

2-year editor at LMG

ExtendScript edit title object

$
0
0

Hi

 

I want to edit a title object using a script. The problem is I don't know which class represents a title object. What I want to do is change the title and also position it where I choose. Please, help with reference!

 

Thanks

Delete sequence in Premiere Pro using ExtendScript

$
0
0

My work is almost done, but there is one simple question, how to delete the sequence using ExtendScript?

In my script I can clone it, rename, move new footages, pictures, wav's etc., but I can not delete it.

In Data Browser (ExtendScript) there's app.project.deleteSequence(), but what are the arguments for this function? I know about QE and I found just one thread about it (https://forums.adobe.com/thread/1977423?start=0&tstart=0), there's no answer how it works. For many years I'm waiting for the manual for Pr like an After Effects Scripting Guide=(


In my project there is a sequence I need to make a copy, create some footages and titles, then rename cloned sequence, export it as Premiere Pro project and delete from this one. Everything works perfect except the last one.

This is the part of code:

 

app.project.activeSequence.clone(); // create "old_seq copy" from "old_seq"
var nI = app.project.rootItem.children.numItems;
for (var i = 0; i < nI; i++)      {         if (app.project.rootItem.children[i].name == "old_seq copy")            {              var item = app.project.rootItem.children[i]                     item.name = "new_seq";             }       }
--------------------------------------------------------------
/*--*/
for (var i = 0; i < nI; i++)      {       if (app.project.rootItem.children[i].name == "new_seq")           {             app.project.deleteSequence(); //<--- this is just an example of the line, but how to delete "new_seq"?            }       }

 

I found nothing about it in PProPanel. Is it possible at all?

Thank you!


Is scripting multiple undo a bad idea?

$
0
0

Hi Premiere api peeps,

 

I'm wondering how safe it is to undo an arbitrary number of times via jsx. I have this code:

for (var i = 0; i < numTransitionsRemoved; i++) {    project.undo();
}

... in a larger script that in total removes all transitions, writes out a fcpxml file, then restores the transitions. I'm doing this because the fcpxml file won't have timecode in/out info unless the transitions are removed. The Premiere project can have lots of transitions. Probably not more than a few hundred, but possibly a thousand or more. I don't see an undo limit in Premiere prefs that would put a cap on the number of undos, but I'm guessing there may be an issue here with memory? Could you folks comment generally on what might go wrong? This seems to work in my tests with lots of transitions (a hundred or so), but I'm hesitant to send this code to my client w/o checking with you guys b/c it's not ideal. I also noticed there's an "undo_stack" method in there. How do I use that method? Could I potentially pinpoint a place in the undo stack with a single command, like:

 

project.undo_stack(numTransitionsRemoved)

 

?

 

Cheers,

Raphael

Recording all actions taken in Adobe Premiere

$
0
0

Is there a way to record the actions that the user takes as they are doing it and write the output to another file?

 

Screenshot_040816_125522_AM.jpg

Log Premiere startup info re: extensions

$
0
0

I have an extension bundle that loads when Premiere starts up and it stopped loading today and can't figure out why.
I'm on CC 2015.2, Windows 7.
I'm hoping there's a way I can get Premiere to print out running information to the console when calling the .exe. I already tried looking in the .log files generated in ~/AppData/Local/Temp but nothing useful is output there.

 

My hope is there's a command-line arg that I can pass the Premiere.exe to print out information. I see it can be done on OSX and was curious about the same capability on Windows.

I'm looking for someone to create video filters for an app!

$
0
0

Hello all,

 

I'm the founder of a video sharing app. I'm looking for highly qualified people to create video filters(e.g. 1970's look with dust and scratches or a punchy1920's b&w)

 

I've parted ways with my previous developers, so if you also know of any qualified Android developers, let me know (iOS will come in the near future)!

 

 

Don't worry, you won't be left short handed. I'm willing to negotiate percentage of all generated revenue with you.

 

Artwork is done, I do have all the source code up to this point.

 

 

 

For serious inquires I'm willing to dispose more information.

 

 

Thanks for your time!

 

 

Rich

Premiere not following extension symlinks to network drives

$
0
0

hey Adobe folk,

 

I'm developing an extension for Premiere that I like to locate on a shared network folder. If I place a symlink in the extensions folder that points to a path on my local disk, everything works great. So, for example, from this directory:

 

/Users/[user]/Library/Application Support/Adobe/CEP/extensions

 

I create this symlink:

 

my-extension -> /some/LOCAL/path/library/premiere/my-extension

 

... everything works great. But if I change that symlink to point to a network location:

 

my-extension -> /some/NETWORK/path/library/premiere/my-extension

 

Then the extension is not available in Premiere. Is there any reason you guys can think of that Premiere would prefer symlinks to local locations over symlinks to network locations?

 

Cheers,

Raphael

Unable to install published ZXP from adobeexchange

$
0
0

Hi there

 

We are trying to publish our developed extension for premiere cc on adobexchange.com as a zxp package. We successfully created a zxp package using ZXPSignCmd, that we could upload and publish privately. We used tutorial from http://www.davidebarranca.com/2014/05/html-panels-tips-10-packaging-zxp-installers/“2. Pack and Sign an HTML Extension”. But we now stuck with installation on our test machine. “Creative Cloud” reports successfully installation for our plugin, but it doesn’t appear in premiere window extensions.

 

Things we already discovered:

  • With logging turned on, CEP6-PPRO.log doesn’t contain our plugin. It seems that premiere doesn’t find it
  • Another working plugin (not ours), is getting installed to %Appdata%\Roaming\Adobe\CEP\extensions. Our plugin is getting copied to %Appdata%\Roaming\Adobe\Extension Manager CC\EM Store\Virtual Product
  • In “Virtual Product” directory, there is just a zxp file of our plugin, without extracted content as for the other plugin in CEP\extensions
  • To upload our ZXP file to adobeexchange.com we choose File Type: ZXP file, Product: "Premiere Pro"; MinVersion: CC; Platform: Mac&Win; Install Location: äuserhomefolder/Documents
  • We install the plugin with "Creative Cloud". This tool reports successfully installation (but it doesnt work afterwards)

 

Could someone tell us what we are doing wrong? While uploading the ZXP file to adobeexchange, what “Install Location” do we need to specify (currently $userhomefolder/Documents)? We didnt expected that publishing would become a tricky part

 

Thanks a lot for you help.

JW

newSequence with custom settings

$
0
0

Hi!  I'm creating a scripted panel which imports a clip and makes a sequence for it.

I've been reading through Premiere.jsx, I can create new sequences using app.project.createNewSequence and qe.project.newSequence;.


What I can't work out is how to create a new sequence with arbitrary settings like resolution and fps.  I want to match the sequence to whatever the input clip is.

 

Also what does app.enableQE do?

 

Thanks!

 

G


Premier pro importer : Multicamera clips

$
0
0

Hi

I completed my importer and works fine.  Now I'm facing another aspect.

Our file format foresee multicamera, that is our clips may have up to 8 camera.  There is a way to

import more than one video track ?  In the SDK_File structure there is only a flag for a single

video track. Should I use the streamIdx of the imFileInfoRec8 ? Did you have an example of

multi camera import (more than one video track) ?

Regards

Some question About title importer plugin

$
0
0

We are developing a title importer plugin for CS6, and have some question, hope forums could help me. Thank you very much.

 

1) Is there API to get title clip's in, out point in timeline ?

    in imImageRec data structures, these is a in/out point, but it is trim in/out point, is not timeline in/out, how to get these point ?

 

2) Because we are also developing a subtitle importer for CS6, when user want to record the subtitle timecode, we hope we could control timeline play/stop, and get the playing/stopped callback, in same time, we could get the current playing position. But, it seems that these is no way to do this. I want to known, is there any plan to support these features in future ? Or, is there some work around methods to get these ?

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!

How to enable NodeJs for HTML5 Panels

$
0
0

Hi All,

We are trying to implement downloading assets from url, in our Premiere pro Panel.

From the premiere pro sdk forum we came to know that by using NodeJs we can implement this feature(Downloading file with NodeJS in CEP extension )

Also we have gone through the github sample Nodejs.html (Samples/Nodejs.html at db6086245ee6b64466710056f60ca324fce12880 · Adobe-CEP/Samples · GitHub )

 

Here is the code and Panel screenshots:

function isNodeJSEnabled() {

  if (typeof(require) !== 'undefined') {

  $('#result').val("Node.js is enabled");

  } else {

  $('#result').val("Node.js is disabled");

  }

  }

Nodejs.PNG

 

But when we run the code from our panel, we are getting the message  "Node.js is disabled".

We have added the following values in manifest file

<CEFCommandLine>

  <Parameter>--enable-nodejs</Parameter>

  </CEFCommandLine>

Downloading file with NodeJS in CEP extensionBut still we get the same result. "Node.js is disabled"

We are testing the panel in Windows 7,Adobe Premiere pro CC 2015.2 (9.2.0(41))

 

What are the steps we need to take care in-order to enable NodeJs in our panel?

 

Thanks and Regards,

Anoop NR

Premiere Pro CS5 and SDK available now!

Viewing all 53010 articles
Browse latest View live


Latest Images

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