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

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


run AppleScript from Premiere Pro Panel / ESTK

$
0
0

Hello,

 

is it possible to execute an AppleScript from a panel from an ESTK script? This would be used to send data to an external application, as well as possibly receive return data.

 

Thanks!

 

Rainer

Call OS commands via scripting

$
0
0

Is there a way to call OS commands via the Premiere scripting API?

 

Basically I would like to run a python script from within premiere, but I see no way to call a os command.

 

After Effects has the system.callSystem method, which could look something like this:

 

cmd = "from sb_pipeline import folderStructure; print folderStructure()"

// Call the python script.

var s = system.callSystem('python -c ' + '"' +  cmd + '"');

alert(s);

 

 

/Simon

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.

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)

calling exportOMF() Method using ExtendScript

$
0
0

Does anyone have any experience calling this method using ExtendScript? I'm trying to incorporate it into a script but so far have not been able to successfully call it. I'm assuming it needs an argument of the sequence you want to export an OMF from, but so far it keeps returning "bad argument list" whenever I try to call it with something like:

 

seq = app.project.activeSequence;

app.project.exportOMF(seq);

 

I've tried using reflect.properties but haven't been able to find anything useful. Can someone point me in the right direction for calling this method, or tell me what arguments it is expecting?

 

Thanks!

Premiere Pro Script execution without ExtendScript Toolkit confirmation

$
0
0

Hi everyone,

I'm creating a video browser OSX app, that will import files to opened project, open and play it in the source viewer in Premiere Pro.

The app creates a JSX file with:

 

"#target premierepro";

app.enableQE();

var result=qe.project.importFiles(argv);

var num=qe.project.numItems;

var proje=qe.project.getItemAt(num-1);

proje.openInSource();

qe.source.player.play();

 

It works correctly in ESTK, but if I open it inside my app, calling:

NSWorkspace *workspace = [NSWorkspacesharedWorkspace];

[workspace openFile:jsxFilePath];

//This exactly the same than opening it in Finder via double-clicking it

 

It shows me this confirmation dialog (sorry for the Spanish localization)

Captura de pantalla 2015-02-06 a la(s) 12.22.45.png

If I press 'Si(Yes)', the script is executed correctly inside Adode Premiere, if I press 'No', then ESTK opens in Debug mode. This is the same behavior if I open the jsx file in the Finder.

 

Then, how can I avoid this dialog every time the app runs a script?

 

Thanks a lot,

Regards,

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.



AE fails to load PRM plugin

$
0
0

I build an Exporter plugin for Premiere as a dot PRM file.  Zal Lam says I need to put it into C:\Program Files\Adobe\Common\Plug-ins\CS5.5\MediaCore folder so the render will be seen in the queue and access MediaCore libraries. 

 

After Effects is trying to load my Premiere Exporter plug-in and giving a failed to load warning. 

 

How do I make my Premiere plug-in only be seen by Premiere and not also by After Effects?

SDK CS4 future

$
0
0

Hi Zac and team.

 

I just have a question regarding the future of the CS4 SDK:

Is there any new release of this SDK that will fixed some bug issued (such as bug 2324214) for example? Or do we need to implement our plug-in into the CS5 SDK?

 

Thanks !

Export parameters not remembered in prExport call

$
0
0

Hi Zac et al,

 

I have my export plugin coming along very nicely.

All the parameters are drawing and reacting as I want...

 

...BUT...

If I leave a file in the queue and reopen AME the parameters are the plug defaults (or garbage if not initialized).

 

How does the User Preset (.epr) or one of the saved Presets get loaded into the parameters?

 

I would have thought it HAD to call prValidateParameters after parsing the .epr and in turn changing all the GUI parameters.

 

eg

     prDefaultParameters()

AME then changes all the parameters to the epr values then calls

     prValidateParameters()

 

but it isn't doing that at all.

 

Without that code path prExport starts with the prDefaultParameters (which is wrong since a generic default is not the same as the user's .epr).

 

How is this supposed to work?

thx

Duplicate command is not working for custom importer

$
0
0

Hi All,

 

I am working on a custom importer plugin. Basic features are working fine, but, I'm facing an issue with Duplicate functionality.

 

I added a new custom importer clip to project and created a duplicate of that clip (by right clicking the clip in Project window and selecting Duplicate from pop-up menu). Then I added both clip instances to timeline. Now, if I change properties of one clip instance it reflects in both clips. I noticed that both ClipIds are same and they are referring to same media path. I also observed the same behavior in SDK_Custom_importer sample. But, built in 'Color Matte' and 'Title' clips works fine.

 

As per my understanding, Duplicate command should create a new clip from existing clip and new clip should be independent of original clip after creation.

 

How to fix this issue? Is there any selector that I should handle to support Duplicate functionality?

 

Thanks & Regards,

Chandan

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

How to start, hot to get .prm or .dll or working plugin file from a VS 2008 generated .exp .lib .pdb

$
0
0

Hi,

I download the SDK, load some sample project (e.g. SDK Exporter) in visual studio 2008 from a Windows 7 64bit workstation. No conversion ask. Build > Build Solution creates several files but none with the .dll or .prm extension. Resulting files are SDK_EXporter.XXX with extensions; .obj, .exp, .lib, .pdb, and 2 files named vc90.idb and vc90.pdb

 

Im lost, I read several pages of the manual but none explains how to get a valid .prm or .dll file to test on the plugins dir so on premiere

 

How can advance ¿??

 

 

 

results from visual studio

===========================================================================

1>------ Operación Generar iniciada: proyecto: SDK_Exporter, configuración: Debug x64 ------

1>Compilando...

1>SDK_Exporter_Params.cpp

1>SDK_Exporter.cpp

1>SDK_Segment_Utils.cpp

1>SDK_File.cpp

1>Generando código...

1>Compilando recursos...

1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>Compilando manifiesto en los recursos...

1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>Vinculando...

1>   Creando biblioteca .\Debug/SDK_File_Compiler.lib y objeto .\Debug/SDK_File_Compiler.exp

1>Incrustando manifiesto...

1>Microsoft (R) Windows (R) Resource Compiler Version 6.1.6723.1

1>Copyright (C) Microsoft Corporation.  All rights reserved.

1>Creando archivo de información de examen...

1>Utilidad de mantenimiento de información de examen de Microsoft Version 9.00.21022

1>Copyright (C) Microsoft Corporation. All rights reserved.

1>El registro de compilación se guardó en el "file://c:\premiere_pro_cs5.5_r1_sdk_win\premiere_pro_cs5.5_r1_sdk_win\Premiere Pro CS5.5 Win SDK\Examples\Projects\SDK_Exporter\x64\Debug\BuildLog.htm"

1>SDK_Exporter - 0 errores, 0 advertencias

========== Generar: 1 correctos, 0 incorrectos, 0 actualizados, 0 omitidos ==========

How to retain uuid from XML instead of generating new ones in Premier Pro CS5.5?

$
0
0

Hi,

 

I use Premiere CS5.5 to import XML sequences and export them back again to XML after a slight edit.I am in the process of writing a simple script that would manipulate the XML file that I get exported out of Premiere CS5.5 to my next application - but am running into problems of the unique identifier of the clips, the uuid.

 

If I bring my XML files to FCP (Final Cut Pro) and then export back to XML - it retains the same uuid codes for the clips. However, Premiere, for some unknown reason, decides to generate new uuid for those clips, which then makes the exported XML useless for me to use.

Due to many reasons I prefer to use Premiere rather than FCP - so something as trivial as retaining the uuid is crucial to me.

 

Is there a setting I'm missing about telling it how to import XML files? Or - is there a settings file I need to manipulate that would prevent it from generating new ids?

 

Thanks!


Exporting media files from a project

$
0
0

Hi,

 

I have created export controller and calling it from my panel using action script.

Currently I am able to export any active sequence to a particular format using 'exportTimeline' function of premiere(using Action script).

 

1. Can we export media files in a project, other that the sequences?

2. Can we create a UI for the export controller(export controller.epr which is build from c++)?

3. Is it possible to pass any parameters(strings) to the export controller?

Please suggest.

Is there any pre-defined preset file which could represent 'match sequence settings'?

$
0
0

Hi Guys,

 

When exporting with 'match sequence settings' selected, Premiere will export clip with current sequence settings.

 

If I use export controller to export a clip, is there any pre-defined preset file which could represent such 'match sequence settings'? Or there exists any parameter which could be serialized in preset file to enable 'match sequence settings'?

AudioUnit/VST plug-in crashing in Audition CS6

$
0
0

Hello,

 

I am currently developing an audio effect plug-in on Mac, which supports both VST/AudioUnit formats. I am trying to get the plug-in to work correctly in Audition CS6, but I am witnessing some very strange behaviour which is causing crash scenarios.

 

The problem occurs when I make a call to boost library functions timed_wait() or sleep(). which are called from within a thread I create when the plug-in is first loaded into memory. As soon as one of these methods is called, a crash occurs inside the pthreads library function pthread_getspecific(), due to memory access at address 0x0.

 

This behaviour is not exhibited in any other host I've tested in. Can you think of any reason why this might be happening?

 

Thanks in advance,

 

Luke

How can I access HTTP services via Extendscript from PPro CC

$
0
0

I attempting to build an HTML5 panel for Premiere Pro that retrieves assets from a third party REST API but there seems to be no support for Socket or XMLHttpRequest objects in this application which there is for others. (I get Error: Socket does not have a constructor)

 

How would I go about making these requests in Extendscript?

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

Viewing all 53010 articles
Browse latest View live


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