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

ExtendScript Toolkit and Premiere Pro?

$
0
0

I'm just starting to dive into Premiere Pro extension development and I'm finding it difficult to get a firm grasp on the environment. I get that there are two DOMs to deal with Application/ExtendScript (jsx) and HTML (js). Cool. However, I'm having a tough time figuring out how to really examine the environment. I've configured my environment to debug HTML DOM stuff that I try but I'm not quite sure how to debug the Application/ExtendScript stuff.

 

Any pointers?


Selected clip in timeline?

$
0
0

Is there anyway to get the selected clip in a timeline using ExtendScript? And also get that clips in/out point (and other metadata).

 

If not, any plans to implement it? I'm currently looking to do a "Publish" tool in Premiere for a vfx pipeline and I need to be able to "do stuff" on the selected clip.

 

/Simon

Mark in/out + add to Media Encoder?

$
0
0

After working on scripts for AE, I'm trying to get things going in Premiere.

 

However, the documentation here lacks severely, and finding the right functions isn't a walk in the park either. So I wanted to check if these two things are possible before I try to delve deeper:

 

  • Is it possible to set mark in and out (like when using shortcuts i + o) via extendscript?
  • Can that mark in/out selection be added to the Media Encoder queue? This would be the equivalent of pressing ctrl + m, and choosing "queue")

 

Bruce Bullis -- could you please shed a light on my questions?

 

Thanks in advance!

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.

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.

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

Where is the API Documentation for the Premiere Pro Panel SDK?

$
0
0

I see the links to the sample application and the getting started guide, but where is the actual SDK documentation?

 

Where is the documentation that describes the options of manifest.xml?

Where is the documentation for the the PPRO javascript API for the type of functions used in the sample application (ie: "$._ext_PPRO.importFiles()")

How about documentation for this global "__adobe_cep__" object that I see in CSInterface.js in the example?

 

Thank you

QE: What is this rabbithole?

$
0
0

Soooo as the title asks: What is QE? There's absolutely no documentation on it, and it appears to house most of the information that we want to access, albeit not reliably.

Most importantly out of anything that I'm looking for - why is there no documentation on not just QE, but the rest of everything within Premiere's capabilities of extendscript?

A single piece of code on Github is not sufficient for a documentation substitute.

 

As far as the seeming instability of QE:

Consider the following code for Premiere Pro CC 2015:

 

app.project.activeSequence.exportAsFinalCutProXML("C:\\Users\\user\\Desktop\\XML_Testing.xml")


app.enableQE()
var mySeq = qe.project.getActiveSequence(0)
var myTrack = mySeq.getVideoTrackAt(0)
var myClip = myTrack.getItemAt(0)
myClip.name

 

If I have a project open in Premiere and execute this using ExtendScript Toolkit, I receive back a myTrack object with a name of 'Wildlife.wmv'.
If I then switch to a new project in Premiere(does not contain 'Wildlife.wmv') and re-execute that same code in ExtendScript Toolkit, the myTrack object stays the same, and I don't receive a new object.

 

This seems hazardous at best.

 

Thank you.


Retrieve name of Track-local Clip name (not ProjectItem name)?

$
0
0

I'm looking for a way to access the possibly renamed "name" of a clip (TrackItem) in Track. Specifically, I'm not interested in the (clip as TrackItem).projectItem.name.

 

Searching the forums returned some old questions. One used the QE DOM, which does not appear to be accessible anymore. Another suggested exporting the project as FCP XML and parsing the information from the exported XML. This seems exceptionally kludgy and prone to mistakes. The "correct" implementation would probably include using the os.tmpdir API from io.js and passing that to ExtendScript, where you would then export the Project or Sequence and then parse the XML. This seems as though it could get pretty heavy, pretty quickly with complex projects. How performant are the XML export functions?

 

Also, has a better way to do this appeared? This seems like an oft-requested and (theoretically) simple-to-implement feature...

Convert timecodes to seconds

$
0
0

Is there a method to convert timecode(hh:mm:ss:ff) to seconds ?

 

I'm trying to create a marker using markers.CreateMarker() method but for some reasons the supplied value in seconds doesn't match input timecodes.

For e.g. I have a timecode 00:03:00:00 on a 29.97fps(Non-drop frame). In order to convert it into seconds,

 

var a = time.split(':');

var seconds = ((Number(a[0])* 3600) + (Number(a[1]) * 60) + Number(a[2]));

var milliseconds = (Number(a[3])/ fps);   // fps is 29.97

var result = seconds + parseFloat(milliseconds,5); 

 

Result here is 180 seconds. Premiere shows this timecode as :

 

Non-Drop frame

In: 00:02:59:24 , which is 5 frames behind.

 

Drop frames gives me slightly better results

In: 00:02:59:28, which is 2 frames behind.


Please suggest.


Problems with plugins .bundle from Premiere Pro SDK for macOS

$
0
0

Hi all,

 

I am using:

SDK - Premiere Pro CC 2017.1

Program - Adobe Premiere Pro CC 2017.1

OS - macOS Sierra

 

After compile Vignette plugin from Premiere Pro SDK, it is not load to Premiere. But Premiere founded this plugin.

In log file: "No loaders recognized this plugin, so the plugin is set to ignore."

 

Pasted File at August 17, 2017 5-40 PM.png

 

Does anyone have a solution to this problem? Please, help me.

Need help with getting started plugin development!

$
0
0

Hello adobe community, I have an idea for a plugin that deals with clip transitions and I'm just getting into sdk stuff with no idea what to do. For starters, I've installed Microsoft Virtual Studio, but don't know where to go from there. I don't understand how to set up the example SDKCross-Dissolve plugin and how to implement the example into the actual Premiere Pro application. Also what purpose are environmental variables used? How do I get the API for Premiere Pro? Lastly, is it possible to code your own tool (like the select tool or slicer tool)? I know these are a lot of questions, but like I said this is my first time so any help is greatly appreciated!

Scripting Broken or being Phased Out?

$
0
0

We're relying more and more on Premiere for our various tasks and we'd like to get into writing some scripts to help automate some of the more repetitive jobs, like swapping out the audio tracks and subtitle tracks for international trailers for example. We looked into Premiere SRT and thought about writing some scripts to modify Final Cut Pro xml files like they did but according to their support page it doesn't work with the latest version of Premiere Pro CC. Note that we are not using this app because it is Mac only and the studio where I work at is Linux and Windows only.

 

So now we're looking into possibly writing some CEP HTML/JavaScript Extensions. I managed to get the Minimalistic Panel working but the more complete example, PProPanel doesn't work in the current 2017.1 v11.0.

 

My question is if we should continue to look into scripting or if this is no longer going to be supported. All the scripting documentation that I could find is for Creative Cloud 2015 applications so maybe it is being phased out? We don't really want to get into the plug-in SDK because we only need some automation tools that are specific to our needs and want to keep it as simple as possible so our users, who are not programmers, to have access to the code and customize the scripts.

Keyboard Shortcut Conflicts

$
0
0

Is there a way to override Premiere Pro shortcuts when your custom CEP Panel is in focus? For instance, I'm trying to get the Cmd+Z and Cmd+Shift+Z shortcut for a text field in my panel, but it keeps triggering the Premiere Pro undo command instead.

 

  $("#editor").on("keyup", function(e){       e.preventDefault();       if(e.keyCode == 91 && e.keyCode == 90)       {       undoEdit();       }  });

 

I know the code works since I tested it with each key individually, and I believe e.preventDefault() is supposed to allow this, but it's not working in my case. Any thoughts are appreciated. Thanks!

Premiere extendscript question

$
0
0

I know this forum is for the SDK, but I can't find anywhere to ask, so I thought I'd try here.

 

I'd like to try and accomplish the following workflow with Extendscript, either in Premiere or AE:

 

user opens a template project which contains a logo (graphic image in Illustrator format) and an audio file.

 

user drags in a movie file (formats/codecs may vary)

 

user moves the wiper to the desired start point (usually around 2 seconds in)

 

user runs script which does the following:

 

- cuts the movie from the beginning to the frame before the wiper position

 

- inserts the graphic and audio file on frame 1

 

- fills 2 seconds of black from frame 1

 

- starts the movie file from the end of the black

 

- exports the movie to a particular standard

 

Before I spend a lot of time on this, I'd like to know if the above sounds possible, or am I dreaming.

 

Thanks!


Automating lower-third creation?

$
0
0

Hello Adobe community and thanks for your time in helping me with this challenge!

 

I am new to Premiere, having done the vast majority of my editing on FCP/ FCPX (don't lambast me, it's actually very good). But afaik it can't do this:

 

I am working with a VFX school to develop an online curriculum, and I am looking for ways to speed up or automate the tedious process of adding lower thirds every time the instructor calls out a keyboard shortcut. We have a template and have been drag-dropping them into the sequence via the Essential Graphics function, and then populating the text fields.

 

My thought was that there might be a way to use markers placed at appropriate points in the timeline which would contain the text information in separate fields, and then we could use that timecode and text information to place the templates at appropriate points in a timeline, populating each with the correct information. Perhaps I'm dreaming....

 

If this is not possible, what time-saving strategies do you employ to tackle this kind of challenge?

 

Thanks!

 

Jonathan

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!

how to get started with premiere scripting?

$
0
0

Hi. I'm an experienced web developer who's working on a project which requires some scripting in Premiere Pro.

 

My needs aren't highly complicated, and at first I thought "well this looks fine" seeing the CEP samples on github. Never have I have ever seen such bad bad horrible job of creating an API since trying to work with Microsoft's Outlook. There seems to be no manual or proper documentation for Premiere, furthermore, most (if not all? I didn't check) of the links on the github page are dead. Worse, some of the links are supposed to point at a file within that project - upon finding that file (in a different place) it turns out that even the intended lines the link points to are out of date.The official ESTK install links on Adobe's website are dead too, I only finally got it through the Creative Cloud - after enabling "show older apps" of course, which hasn't been a whole lot of help because it's debugging system is so ridiculously out of date. Oh also, some of the examples on github don't even run *as is*. There's no proper guide or quick-start tool, there's not even something like a REPL system that'll allow you to mess around and learn through that.

 

I need to run some really simple operations. I'm not asking for help with figuring out how to do them - I can do that on my own, provided I have some system that allows me to actually understand and learn without banging my head against the wall. Frankly, this is embarrassing and unprofessional from a company this big, and I don't understand it, but maybe someone on this community can point me in the right direction? I just need a way to start messing with this so I can actually learn how to use it.

Extendscript Toolkit opens during panel interaction

$
0
0

When I run a script from a panel I have created, if the Toolkit is installed on the machine, it will open and come to front. No code is showing, the program just launches.

 

Is there a way to suppress this? It is not huge, but a bit distracting. Thanks!

Apply Lumetric color Effect by extendScript

$
0
0

Hi,

 

I'm looking for a way to apply the Lumetric color effect to a frame/clip using extendScript. I've gone through several posts but could not find anything related. can someone please help me to find if it is possible in premier pro or not. if yes then please share some reference code/post.

 

 

1. I want to apply any LUT to a specific frame/clip and want to load Input LUT file using JSX only.

2. How can I list of INPUT LUT and LOOKS present in the project?

 

 

Any help will be greatly appreciated.

Viewing all 53010 articles
Browse latest View live