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

UI scripting with applescript: Is it possible?

$
0
0

I'm attempting to use applescript to do some automation with file setup and importing with Premiere Pro CC. The company I'm working for is switching from Final Cut 7, and every button and window can be selected with the system's Accessibility controls.

 

I've attempted to run Xcode's UI element inspector, but it doesn't recognize anything in the interface, except the apple standard buttons like close and minimize.

 

Neither does the Voiceover utility recognize any elements within a program window.

 

Has anyone had any luck accessing anything other than the menu items via UI scripting? How are we supposed to externally intereact with the interface?

 

Sticking with applescript is not a necessity.


HTML extensions: Getting values out of callbacks

$
0
0

I want to store a value from JSX in JS so I don't have to call evalScript all the time.

Is there a way to get a value out of a callback like this?

 

        var csInterface = new CSInterface();     evalout = "lcl";               csInterface.evalScript("$._ext_PPRO.testOnLoadedVar",     function (result)          {          evalout = result;          console.log("In testcb: evalout:"+evalout);          console.log("In testcb: result:"+result);          }     );     console.log("evalout: "+evalout);

 

The console output happens before the callback runs, so evalout equals "lcl". I've also tried the function as a named function, but the same thing happens. I think there is something basic that I'm missing.

 

Thanks,

Miles

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!

export sequence from extend script

$
0
0

Hi,

I want to export sequence which include video and title from extend script for adobe premiere pro

Media types supported by ProjectItem.refreshMedia()

$
0
0

Hi,

 

Can any type of media be refreshed using the ProjectItem.refreshMedia() function, or does this only work for OP1A MXF growing files?

 

I have tried calling this function on ProRes files on a NAS and they do not refresh unless Premiere is tabbed out and back into again.

Confirm that the HTML5 plugin (extension) SDK matches the C/C++ SDK plugin feature set in every way

$
0
0

Im looking to develop an HTML5 plugin for Premier.  I want to create something similar to http://www.pond5.com/adobe.  I realise this plugin is fairly complex - will I be able to create such a complex plugin using HTML5?  I realise that there is a C/C++ way of developing plugins, so Im just concerned that the HTML5 method might not support the methods I will need for my app - things like drag n drop audio clips from the plugin window into premier.  Can any developer please confirm that the HTML5 SDK matches the C/C++ SDK features in every way?  Thanks in advance, Ross

Premiere Markers export and import: Roundtrip via FCP XML not working

$
0
0

The objective of my project is to create a sports app that records markers and saves it in different formats of XML / CSV that I can then import in different NLE packages.

I have already succeeded with Vegas Pro but also want to support NLEs for MAC-OS.

 

In order to approach this analytically I have exported a very simple project with 1 sequence including 1 clip and 3 markers (with length zero and length > 0) and exported it
in FCP XML from Adobe Premiere CC and do a round-trip import it via FCP import into Adobe Premiere CC.

 

This round-trip does not work. Any insight why or any support what other mechanism will work?

 

Thanks


Thomas

Create a custom plugin for Premiere on windows?


Creating UI inside transmitterPlugin.cpp

$
0
0

Hi, I had two questions regarding transmitterPLugin. I am trying to create a plugin that would transmit data from premier pro source monitor on to a external hardware device.

transmit_UI.PNG

1) I can use the MessageBox to create a normal window from the above code, but how do I create a UI like premier pro has inside the above function ? Is there any documentation on how to create UI using C++ ?

   Or do I need a create a Javascript UI file which is used by the C++ plugin when it loads ?

 

2) The SDK documentation mentions this :

    transmit_other.PNG

Clicking on the Transmit Invocation Suite does not give any useful information. I also checked out an earlier post on this https://forums.adobe.com/thread/1179336

Could Adobe please explain on how can I get the Transmit invocation suite to work. For example ,assume I should create a video filter which if the user adds to the clip, it should

send the entire timeline to the external hardware, how do I use the SDK example files in order to achieve this ? Should I export a Video_filer plugin and a Transmitter plugin or should

I add the source code from both these into one ? It would be helpful to understand this workflow since there are no examples related to this in the SDK.

 

Thanks

Setting a marker duration

$
0
0

Hello,

 

I'm using the PProPanel as a base.  In the 'Add Sequence Markers' there is code that can set a marker.  It looks like this:

 

var new_web_marker  = markers.createMarker(14.345);

new_web_marker.name = 'Web marker created by PProPanel.';

new_web_marker.comments = 'Here are some comments, inserted by PProPanel.';

new_web_marker.end.seconds = 15.6789;

new_web_marker.setTypeAsWebLink("http://www.adobe.com", "frame target");

 

The piece that is not working for me is the duration or marker.end.

 

Has anyone tried this with success?

 

thanks,

Kelly

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.

Is it possible to assign a color to a marker

$
0
0

I'm developing a small HTML5 extension for premiere pro cc.Assigning color to a marker for better visual representation is a major requirement.

Is it possible to set a color to a marker ?

How to know the Drag and drop is completed?

$
0
0

Hi All,

How can we get to know event.dataTransfer.setData("com.adobe.cep.dnd.file.0", path) is completed and the asset is imported?

Can we get any call backs for the event.dataTransfer.setData() function?

 

Thanks and Regards,

ANOOP NR

Premiere Pro 2015.1 broken features with Node + others

$
0
0

Both of these features are broken on OSX 10.10.x and Windows 7 for Premiere Pro 2015.1

Seems that the 2015.1 release has broken some functionality that we're pretty dependent on for developing and once you lose these cool features, it makes you realize how dependent you were on them!

 

It appears that Adobe's broken(probably removed, it doesn't look like it exists anymore) the fs.watch functionality from Node, which I'm using for a constantly generating build system for the extensions. If I make changes to any of the files, it can watch the files and reload the application + debugger simultaneously. This is an extreme time saver for us because it takes out the process of reloading stuff while you're making changes.

 

Another thing that Adobe extensions appear to be breaking is Chrome's debugger(Chrome is up to date). When running in full-screen (and only when debugging an Adobe extension), if you fill a page up, scrolling is broken. I'm attaching a screenshot below and as you can see, I flood the window, but scrolling is disabled. Using the debugger for anything other than an Adobe extension works just fine.

scroll.PNG



These were both things that were working in 2014 and 2015.0, but no longer work in 2015.1

 

After doing a bit more research, it appears others are having this issue as well: Moving to a more recent version of WebKit/Chrome · Issue #28 · Adobe-CEP/CEP-Resources · GitHub

 

See the last comment there from Jolg42. I have, however, attempted doing this but was unsuccessful.

 

 

 

And another thing that seems to be broken is running app.project.path on Windows(not OSX) returns a nasty filepath. I don't remember it doing this in other versions, either, but don't want to say specifically. This is the path that it returns that's nasty:
It returns this in both Extendscript Toolkit and in normal extension code.


Result: \\?\S:\Premiere\projects\devproject\test\assets\premiere\Templating\Untitled_1.prproj

I put a temporary fix into the extension by stripping those characters, but they shouldn't be there in the first place.

Here's that fix if anyone needs it:


    getProjectPath : function() {        // On Windows, Adobe is returning this: \\?\S:\        projectPath = app.project.path        projectPath = projectPath.replace("\\\\?\\", "")        // Fixing slashes to point forward        projectPath = projectPath.replace(/\\/g, '/')        return projectPath    },





The node issues seem to be part of a bigger issue(maybe the main implementation of extensions into Adobe, I haven't had the time to test in the other Adobe apps), so I'm not sure if lesavage or Hallgrimur Bjornsson might be able to weigh in on these.


Thanks for taking the time to read!

Update 1: HTML Panel Tips #19: CC2015.1 (CEP6.1) Node.js Fixes | Photoshop, etc.
Haven't gotten everything working yet and Bruce, in that thread, you mention that developers in the pre-release program were notified ahead of time - that may be great and all, but that doesn't really help those of us that aren't in (and do not have time to be in) the pre-release group. Is it possible to iterate to the people that manage the changes how pertinent it is that this sort of information have an official release? At this point, fixes are PURELY word of mouth, and this really kills dev cycles.




How to use get keyframe information in Premiere

$
0
0

Hello,

 

I am looking for an example in the sample projects that i can't find on how to get information about keyframes.

 

Is it possible to use "PF_PARAMUTILSSUITE3" and functions PF_CheckoutKeyframe etc. to retrieve these informations?

 

If anyone could give me some advices on how to achieve that.

 

thx in advance


Sometimes exports to Media Encoder just get lost

$
0
0

Using the Panels & JS/JSX. Sometimes we send off tasks for exports and they're just completely lost. All data is confirmed to be correct going out, Media Encoder activates(comes to front), and after that it seems pretty hit or miss as to whether it will pick up the job.

 

Do you have any tips Bruce? We're working on both OSX and Windows with the same results in both.
BTW - It would be awesome if there was a better way of reporting back from Media Encoder to Premiere - is there something we haven't found yet?

This occurs on both 2015.2 (OSX) and 2015.1 (Windows)

get Premiere Pro XML as text/data

$
0
0

It would be helpful to get the current sequence's XML not only as a file saved to disk, but as text or data. This would eliminate to write to and read from disk when using things like Applescript or sockets.

 

I take it it's not currently possible to do this, right?

 

Thanks,

 

Rainer

Premiere Pro Importer: duration dependent on prefs

$
0
0

Hi,

 

I implemented an importer which calculates the duration of the imported clip using prefs which can be changed by the user. This works if only a single instance of the imported clip is present.

When multiple instances of the clip are present and each one has different duration because of different prefs, Premiere sets the last calculated duration to all instances of the clip.

 

Why does Premiere think that the duration of a clip is always independent of the stored preferences?

What can I do?

 

Best Regards

-Bjoern Gdanietz-

Exporter minimum requirements?

$
0
0

Hi
I'm trying to port a Compiler plugin (that was targeted for CS3) to the new Exporter interface..

 

Previously, @startup i described my plugin by setting compInfoRec->compilesVideo and compilesAudio to false (since my plugin only produces statistics)..

 

Now, as first porting step, i want to obtain an Exporter implementation "that does nothing", and later implement the parametrization and the actual export.

 

By providing
-    exExporterInfoRec->canExportVideo and canExportAudio to false @startup,

-    mock strings on query extension and on query summaries

-    mock bitrate on query output setting

 

The plugin simply crashes the Media Encoder without any apparent reason

 

By providing also "some parameters" (by copying & pasting some portions of onGenerateDefaultParams and onPostProcessParams from the SDK File example) i'm able to reach the encoder setting dialog
(withou preview, because video is disabled and with those useless params)
but when i start the queue the Media Encoder fails immediately by marking the task with the yellow warning flag,
and the debugger never reached the onExport handler

 

So my question is:
- is allowed to have an exporter that does not export video and nor audio??

- Are there other requirement that any exporter must satisfy??

 

Thank you very mutch for your attention

Get a clip name in Video Filter

$
0
0

Hello!

 

I need to write some specific plugins, that "overprints" technical info over image. So, I get a problem - what is the best way to get CLIP name in "VideoFilter" plugin? Can I get there more technical info (that is seen in Premier's bin) ?

 

Thanks.

Viewing all 53010 articles
Browse latest View live


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