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

Master List of Functions / Hierarchy

$
0
0

I've done some coding in the past, but I'm new to Premiere Pro panels. Wondering if there is some sort of master document or XSD that lists all the functions and hierarchies so I know where to find objects and operations.  Extend script doesn't seem to suggest very much.

 

Thanks,

 

Justin


Multiple Outputs in Encoder

$
0
0

I know the following code in the sample panel will allow you to render a sequence in Media Encoder, however is there a way to add multiple outputs/presets so that one sequence can render to multiple files?

 

Sample Code:

app.encoder.encodeSequence( app.project.activeSequence, fullPathToFile,                            outPreset.fsName, app.encoder.ENCODE_WORKAREA, 1);

 

I tried duplicating this snippet, however it just creates multiple render jobs in encoder, not multiple outputs.

 

What I'm trying to achieve looks like this in AME:

Screen Shot 2017-03-31 at 10.12.34 AM.png

Any input is appreciated.

 

Thanks,

 

Justin

Event for changed ActiveSequence

$
0
0

Hi,

 

is there an event allowing us to create a listener for a change of the active sequence, i.e. if a different (already open) sequence is being activated, or another sequence is opened from the project window? I don't really want to use an interval timer for polling..

 

Cheers,

Erik

Automate Title Creation

$
0
0

Hi all,

Is it possible to develop an import plugin to generate titles and populate them with text?  If so, where can I find a bit of information on how to begin with this?

 

The goal will be to parse an excel sheet and generate titles.

 

Thank you!

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

Is it possible to control source patching using ExtendScript?

$
0
0

My impression is this is not possible, but on the off-chance, the idea would be something along these lines...

 

thisSourceTrack = app.project.activeSource.audioTracks[0];  //"activeSource": a made-up property
thisProgramTrack = app.project.activeSequence.audioTracks[5];
thisSourceTrack.patchTo(thisProgramTrack); // "patch-to": made=up function
thisSourceTrack.active(true); // "active": made-up function

 

Goal: We're interested in developing custom keyboard shortcuts to patch source to sequence.

Current options are mostly mouse-driven.

drag drop is not working on premiere extension

$
0
0

Hello all,

 

I'm a new user in Flex. And now, I'm trying to create premiere plugin.

-the issue is that I use drag and drop event on desktop app,works nice, when I debug it for Premiere Extension, access the extension on premiere and the event not working succesfully.

The error is  Error #1034: Type Coercion failed: cannot convert mx.events::DragEvent@7fff8465a19 to mx.events.DragEvent.

Both same events and already worked in desktop app. Is that a bug or what I'm missing ?

Thanks in advance

Premiere Pro ExtendScript Events

$
0
0

Hi, I was trying to find somewhere the list of possible events that can be handled within an application but have no luck. Specially the ones that are related with sequences, like active sequence changed, renamed, created or deleted, is this possible?

 

Thanks


Setting focus on an extension that is opened.

$
0
0

Using csInterface.requestOpenExtension() to call "sub-extensions" that are part of the main extension.

 

They open fine, except modal dialogs that are being created are not focusing on creation. Is there a way to focus them? Without this, the user has to click two or three times(on a button) to get the focus set on the extension. Most users aren't going to think to select the toolbar on the top of the window to set the focus.  I haven't found anything in the code or the sample extensions that leads me to believe there's a way with Adobe.

 

I know this is a more general question for extensions, but the Extension Builder forums are kind of dead, so I figured here was my best bet. Thanks.

 

This appears to be an issue on Windows only, on OSX, modal dialogs are already focused.

Does a PP Project have XMP data?

$
0
0

Hi all, can a Premiere Pro Project have XMP data?  I know clips can have data, but I want to store data globally for the project, not tied to a specific clip or bin.  I need to be able to blast all clips/bins from a project but still retain XMP data.

 

I found this thread but it wasn't much help:

Re: Storing data in Premiere Project

 

I saw in the DOM there's a "app.project.rootItem" which is of type ProjectItem.

 

I also saw the code in Premiere.jsx that reads/writes XMP data to ProjectItems and tried this on the root item, but with no luck.

 

Any help would be greatly appreciated.

 

TNKS!

 

G

Is it possible to detect which items are selected in the project panel?

$
0
0

Is it possible to detect which items are selected in the project panel?

Looking the equivalent of TimelineClip.isSelected() command but for items in the project panel.

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

Uniquely identify project item

$
0
0

Hello All,

 

Is there any way to uniquely identify each project item (e.g. by some Id) in premiere pro? We can't take project item name because premiere pro supports duplicate name.

 

Premiere Pro Version: 9.0.0
Extension Type: Panel

 


Thanks & Regards,
Meet Tank

Looking to Activate Custom Panels via Keyboard Shortcut + Keyboard Listeners when Panel is Active

$
0
0

This may well a couple of feature requests, but looking forward to getting some feedback...

 

In the interest of building more robust and flexible custom HTML panels, we were looking for ways to achieve the following:

1 - Activate and give focus to a custom panel via keyboard shortcut.

2 - Once activated and in focus that custom panel's key listeners (keystroke, keyup, keydown) can be coded to either take precedent over PPro's keyboard shortcuts or not.

 

The goal is to get the above two to work in concert so as to create workflows that would allow 100% keyboard driven functionalities, along the lines of:

- Call the Custom Panel via PPro shortcut

- Run the Panel's function (or suite of functionalities) via keystrokes

- Release control back to PPro and Return to regular PPro kb by exiting Panel focus

Imagine rapid fire: keystroke to activate, use, and release.

 

So far we've been unable to do this.

Reasons:

A - Haven't found a way or workaround to assign the ability to open & give focus to a custom panel via keyboard shortcut

B - Haven't found a way to make custom panel key listeners reliably detect keystrokes even when they are in focus..

 

So far we've tried by way of the CSInterface binding listed here:

https://forums.adobe.com/thread/2250292

and via standard HTML5/JS bindings

document.body.addEventListener / document.addEventListener.

 

Occasionally they work, but not reliably.

 

We're on Mac OS

Plugin Loading Problems During Debug

$
0
0

Hi Zac,

 

I am going in the opposite direction this time. I have our new MOV importer for CS5 working on the Mac and am now porting it over to Windows - but am running into a seemingly impenetrable situation. I have everything in the Windows project compiling and linking properly in Visual Studio 2008 (and set to target x64). I have the project setup to use Premiere as the executable for a debug session. I have a break point set on the first line of xImportEntry that has meaninful code. When I go to launch a debug session, Premiere loads and when it gets to the point in the load process where the MOV importer I am debugging should be loaded, the icon of the breakpoint I set in the project blinks twice from the 'unreachable' state to the 'reachable' state and then finally switches back off to the 'unreachable' state. At first I thought there might be a dependency issue so I checked it with Depends.exe. Sure enough, there was an issue with a runtime library, which I rectified - however it still did not resolve this load issue. After there was no longer an issue as reported in Depends, there was still an issue reported in the output console of Visual Studio regarding libmmdd.dll. The output in the console of Visual Studio, pertaining to the loading of the MOV importer, is as follows:

 

'Adobe Premiere Pro.exe': Loaded 'C:\Program Files\Adobe\Adobe Premiere Pro CS5\Plug-ins\Common\CineForm\CFHD_MOV_Importer.prm'
'Adobe Premiere Pro.exe': Loaded 'C:\Windows\System32\libmmdd.dll'
First-chance exception at 0x77a476fd in Adobe Premiere Pro.exe: Microsoft C++ exception: ML::ImporterPluginFailure at memory location 0x0012d858..
'Adobe Premiere Pro.exe': Unloaded 'C:\Program Files\Adobe\Adobe Premiere Pro CS5\Plug-ins\Common\CineForm\CFHD_MOV_Importer.prm'
'Adobe Premiere Pro.exe': Unloaded 'C:\Windows\System32\libmmdd.dll'
'Adobe Premiere Pro.exe': Loaded 'C:\Program Files\Adobe\Adobe Premiere Pro CS5\Plug-ins\Common\CineForm\CFHD_MOV_Importer.prm'
'Adobe Premiere Pro.exe': Loaded 'C:\Windows\System32\libmmdd.dll'
First-chance exception at 0x77a476fd in Adobe Premiere Pro.exe: Microsoft C++ exception: ML::ImporterPluginFailure at memory location 0x0012d858..
'Adobe Premiere Pro.exe': Unloaded 'C:\Program Files\Adobe\Adobe Premiere Pro CS5\Plug-ins\Common\CineForm\CFHD_MOV_Importer.prm'
'Adobe Premiere Pro.exe': Unloaded 'C:\Windows\System32\libmmdd.dll'

 

So I set the project to ignore libmmdd.lib and the output I now get in the console is:

 

'Adobe Premiere Pro.exe': Loaded 'C:\Program Files\Adobe\Adobe Premiere Pro CS5\Plug-ins\Common\CineForm\CFHD_MOV_Importer.prm'
First-chance exception at 0x77a476fd in Adobe Premiere Pro.exe: Microsoft C++ exception: ML::ImporterPluginFailure at memory location 0x0012d858..
'Adobe Premiere Pro.exe': Unloaded 'C:\Program Files\Adobe\Adobe Premiere Pro CS5\Plug-ins\Common\CineForm\CFHD_MOV_Importer.prm'
'Adobe Premiere Pro.exe': Loaded 'C:\Program Files\Adobe\Adobe Premiere Pro CS5\Plug-ins\Common\CineForm\CFHD_MOV_Importer.prm'
First-chance exception at 0x77a476fd in Adobe Premiere Pro.exe: Microsoft C++ exception: ML::ImporterPluginFailure at memory location 0x0012d858..
'Adobe Premiere Pro.exe': Unloaded 'C:\Program Files\Adobe\Adobe Premiere Pro CS5\Plug-ins\Common\CineForm\CFHD_MOV_Importer.prm'

 

It seems obvious that something is wonky in the MOV importer plugin that is making it so that Premiere won't load it, but I can't figure out what it is. In the MOV importer project I have attempted to mimic the settings of the project of our AVI importer, which does load properly. In that the MOV and AVI projects have almost identical settings, and as the MOV project compiles and links properly and checks out with Depends, I am starting to run out of ideas. Any thoughts as to what might be causing this?

 

Thanks as always,
Josh


QtCore4.dll and QtGui4.dll

$
0
0

Hello,

 

I have a question about Qt dll's. We createad a plugin for CS4 and CS5 using Nokia Qt 4.7.1 framework. It works fine, but we have to distibute our plugin with two dll's: QtCore4.dll and QtGui4.dll. We cannot put them next to .prm plugin file, because Premiere Pro will not try to find these dll's there - they should be in the same folder as "Adobe Premiere Pro.exe".  With CS4, we didn't have any problems with that, but we are having trouble with CS5. CS5 already has QtCore4.dll and QtGui4.dll, but they are old versions.

Our questions are - why does CS5 use Qt, for what purposes, and is it ok if we overwrite these dll's with new ones? Also, when we update PP CS5, it looks like it overwrites Qt dll's with old versions again. Is there any way to avoid it? Or is there any way to store and load dll's that we need from some other place (without using Qt static compilation, of course) ?

 

Thank you.

CS5 SDK + AME CS4 = Crash from bad memorySuite

$
0
0

Hi all,

I compiled the CS5 SDK_Exporter example and only changed one thing:

     1:     the build from x64 to x86     (because I'm on Win7 32bit with CS4 Production Premium)

 

     BTW the enviroment variable $(PREMSDKBUILDPATH) is set to points to

          C:\Program Files\Adobe\Adobe Premiere Pro CS4\Plug-ins\Common\SDK

 

Then I started to debug the debug|x86 build and invoked it by running AME by setting the Debugging->Command argument to

 

          C:\Program Files\Adobe\Adobe Media Encoder CS4\Adobe Media Encoder.exe

 

When I run it, add a video and then change the exporter to "SDK File" it then calls the exSDKBeginInstance( )

 

prMALError exSDKBeginInstance (

exportStdParms *stdParmsP,

exExporterInstanceRec *instanceRecP)

{

prMALError result = malNoError;

SPErr spError = kSPNoError;

ExportSettings *mySettings;

PrSDKMemoryManagerSuite *memorySuite;

 

int exportSettingsSize = sizeof(ExportSettings);

SPBasicSuite *spBasic = stdParmsP->getSPBasicSuite();

if (spBasic != NULL)

{

spError = spBasic->AcquireSuite(

kPrSDKMemoryManagerSuite,

kPrSDKMemoryManagerSuiteVersion,

const_cast<const void**>(reinterpret_cast<void**>(&memorySuite)));         <<<<<<------ THIS memoryStuite isn't set

 

>>>>> THUS THE NEXT LINE CRASHES BECAUSE memorySuite==0

 

mySettings = reinterpret_cast<ExportSettings *>(memorySuite->NewPtrClear(exportSettingsSize));

 

Why is using the CS5 headers breaking the CS4 applications?

ExportController - Plugin loading.log & argument from Flex

$
0
0

Hello guys

 

I'm having a problem porting my ExportController to cross platform and it recently refuses to get loaded.

 

Here is Plugin loading.log:

Loading C:\Program Files\Adobe\Common\Plug-ins\CS6\MediaCore\ExportControllerSDK.prm

Loading from disk...

No loaders recognized this plugin, so the plugin is set to Ignore.

I found CS6_ServiceManager.log but I'm not sure if it's related (altho I changed some IO precisely before it broke)

2013-02-12 01:13:50 : ERROR vcfoundation::system::VCSysError: WriteFile() failed <232: The pipe is being closed.>

race:    1 0X0049199F

   2 0X0048E7A3

   3 0X0048E91E

   4 0X00488C16

   5 0X00491CF8

   6 0X00490C6F

   7 0X0048ED72

   8 0X004884BB

   9 0X0049BAF5

  10 0X0049BB7F

  11 0X759F8543

  12 0X7791AC69

  13 0X7791AC3C

Where else can I find more information on my problem or can I enable debug launch logs? It compile and builds fine and the code has been tested externally of PPro so I'm having an hard time figuring it out.. Any help or advice appreciated.

 

Also is it possible to pass an argument from a flex plugin to the ExportController, i.e ExportTimeline in the snippet below:

DllExport PREMPLUGENTRY xExportControllerEntry (

          int                                        selector, ecStdParms                    *stdParms, void                              *param1)

{

          prMALError result = exportReturn_Unsupported;

            switch (selector)

          {

...

                    }

          case exportController_ExportTimeline:

                              result = ecExportTimeline(stdParms, reinterpret_cast<ExportControllerTimelineInfoRec*>(param1));

                              break;

...

Call is currently made from JSX function (invoked by the flex) but if I could propagate an argument it would solve all my problem!!!

 

Thanks in advance,

Languages for plugin development (C++, C#, Flex)?

$
0
0

Hi all,

 

Is C++ the only language that I can use for Premiere Pro CC plugin development?

 

Someone told me that Flex is also possible, is that true?

 

And how about C#?

 

Thanks.

Scripting for Premiere Pro CC / Premiere Pro CC 2014

$
0
0

Using Extendscript Toolkit I've found that it can possible to scripting for Premiere Pro CC and Premiere Pro CC 2014, but my question is:

 

Why Adobe don't provide any relative scripting guide?? (It's essential to see at least the Object Model)

Viewing all 53010 articles
Browse latest View live


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