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

CEP engine extension API to check for file existence

$
0
0

Hi All,

 

I am looking for an API (CEP FS) which checks a file is exist or not. I couldn't find such inside CEP fs library. I am referring to cep.fs object.

 

Note: I don't want to use JSX here as that would be asynchronous.

 

 

Premiere Pro version: 11.1.0

Extension Type: Panel

 

 


Thanks & Regards,
Meet Tank


Is it possible to load jsx file other than the local extension folder?

$
0
0

Hello All,

 

I want to load jsx file dynamically from the server (e.g. Through an http get call) in my premiere pro panel. How this can be achieved?

 

Premiere Pro version: 9.0.0
Extension Type: Panel

 

 

Thanks & Regards,
Meet Tank

Can you build premiere pro plugins using the After Effects SDK?

$
0
0

I come from the background of using Motion and Final Cut Pro.  I am one of the few programmers who uses the FxPlug API which is used to make Motion and Final cut Pro Plugins.  I am expanding into trying to create plugins for premiere pro.  I am confused by After Effects and Premiere Pro having two different SDKs.  After Effects seems to have some structure to it with a parameter setup and methods for rendering while Premiere Pro seems to have very little structure to it.  I noticed that I can open .plugins created with the After Effects SDK both inside After Effects and Premiere Pro while I have had trouble getting any of the Premiere Pro .bundle's to work correctly at all.  What is the difference in making a .bundle vs a .plugin when .plugins seem to work in both?

 

I am on a Mac and using Xcode and anytime I try to debug any of the example projects that came with the Premiere Pro SDK I have this error. "This file path does not exist on disk at this location.  /Applications/Adobe Premiere Pro CC 2017/Adobe Premiere Pro CC 2017.app/Contents/MacOS/Adobe Premiere Pro CC 2017 - NSDocumentRevisonsDebugMode YES".

 

I cant even get one of the example projects off the ground to mess with one for debugging and testing purposes.  What are the benefits of using one SDK over the other?

 

My last question relates to effects and project media files.  Do you need to insert media into the project every time or can I have media built into an effect kind of like a Generator in Final Cut Pro.  In Final Cut Pro you can have media cooked into an effect and media is not needed in the project or the timeline to accomplish this.  It seems like effects only offer presets that are just a difference in parameters but do not have any media built into them.  Is it possible to have media inside of an effect in either Premiere Pro SDK or After Effect SDK?

getCurrentPos for Clips ?

$
0
0

I need the ability to get the current playhead position for a source clip.

The reason why I need this is because I have external logs which I would like to push into clip markers.
But the external logs have a timecode-offset (logs-TC has an offset to clip-TC).

 

Envisioned workflow:
- Premiere PRO editor open extension pane and selects one log
- Then shuttles to the position in the clip which belongs to the log
- Then goes back to the extension pane, clicks a sync button
- Result: extension panel recalculates the TCs and imports the logs as markers


All I found is this for sequences:

getCurrentPos

Returns the position of the current time indicator (the position bar set by the user). If (-1) is returned, the position bar in the timeline is not present.

csSDK_int32 getCurrentPos(PrTimelineID timelineData);

timelineData - the timelineData of the current sequence

Thank you,
Petra

Where is the close button handler for adobe premiere pro panel in the code?

$
0
0

I am developing an extension, i have downloaded the sample premiere pro panel SDK. I would like to know where is the close button handler for premiere pro panel in the code.

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?

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!

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.



Git repository best practices?

$
0
0

For those out there who have used git (or equivalent) with a development repo for Premiere extensions, what's the best practice here? Do you simply put the repo folder in the Adobe/CEP/extensions folder? Do something more fancy with shuffling files around from a build directory?

 

Would love to hear what has worked for people before I dive in and bump into some unforeseen walls that cause us some headaches...

Getting returned values from evalScript calls

$
0
0

I have a few functions that return bits of information from the JSX context to the panel JS so that they can be further processed there. One such function returns an array of times-in-seconds (Array<number>). I have verified with console.log that I do indeed get the results back. However, while I was expecting an Array<number> in the callback, the type of the value passed to the callback is string!

 

Is it possible to get objects in the callbacks or will everything simply be coerced to a string? If the latter, is there a suggested way to convert and then reconvert the data? (I looked but didn't see a JSON utility object/class in the JSX context to assist with this...)

[Adobe Premiere Pro] Installed Extensions not Showing in Adobe Premiere

$
0
0

[Adobe Premiere Pro] Installed Extensions not Showing in Adobe Premiere

 

Hi all,

 

Complete Adobe-Development noob here -- so apologies in advanced for any confusion on my part.

 

I have a requirement for work to update an extension that someone else (who is no longer available) created for Adobe Premiere Pro.

 

To the limit of my knowledge, it was hosted on Adobe Exchange and ceased to work due to new released Premiere Pro versions. I am tasked with updating the extension to make it compatible with the newest Premiere Pro release (and hopefully just all versions if possible). The extension is just essentially an iFrame redirect to our web application, housed in an Adobe Premiere Pro panel. I plan to just update the versions and submit a "Patch" on Adobe Exchange with the new ZXP Package.

 

Issue:

  1. I cannot see my "installed" extension in Adobe Premiere Pro when testing my ZXP changes -- the extension menu is grayed out / disabled.

 

Attempted Fix Process (learning to repackage the original ZXP file has been an epic journey):

  • I stripped the original ZXP package of the "mimetype" file and "META-INF" directory after learning those are generated after signing the package.

          ZXP Package Files.png

  • I edited the CSXS --> manifest.xml to provide (what I thought was) the minimum version supported (which I hoped would then just be compatible with all new versions)

               Manifest XML File - Updated.PNG

  • I signed the folder with ZXPSignCmd.exe -- this creates the new, signed ZXP file

 

  • I install the new ZXP package with ExManCmd.exe
    • Command: ExManCmd.exe /install com.MyExtension.zxp

 

  • I receive a successful extension installation result:
    • When installing the extension with ExManCmd.exe, the "com.MyExtension" extension folder is being placed in the following path:

      • C:\Program Files (x86)\Common Files\Adobe\CEP\extensions

          Successful CMD Line Install of Extension.PNG

 

  • Unfortunately, I still do not see the installed extension (or any extensions) in Adobe Premiere Pro version: 11.1.2. The Extensions menu item is grayed out.

          Adobe Premiere Pro - No Extension Showing.png

 

Question:

  1. Can anyone tell me what I'm missing or what I'm doing wrong? Thank you in advance!

ExtendScripts JSON object is suddenly undefined?

$
0
0

I've been passing data pretty fluently back and forth between a custom HTML5 panel and ExtendScript, making use of JSON.stringify

 

All of a sudden, today the JSON object is coming up as undefined in the ExtendScript context.

I know it has worked, and now it doesn't.  Why on earth?!

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!

Get clip position in sequence?

$
0
0

Hi everyone,

 

I'm writing a script to export all the individual clips in my sequences as individual videos.

I have the PProPanel example and have ESTK up and running nicely.

I can iterate through all the tracks and clips in a sequence no problem.

I was thinking of simply setting the Sequence In/Out to the beginning of each clip,

and then calling render() (as in the PProPanel) .

The following script works, except clip.start and clip.end are relative to the clip source media, not the sequence.

So how to retrieve the start and end of a clip relative to the sequence?

(p.s. before anyone suggests a manual way of exporting clips individually, note that I have to export around 6000 clips)

Any help appreciated, MM

function ExportClipsInSequence(sequence)

{

  if (!sequence) return;

 

  var videoTracks = sequence.videoTracks;

 

  for (var trackIndex = 0; trackIndex < videoTracks.numTracks; trackIndex++)

  {

      var track = videoTracks[trackIndex];

      var clips = track.clips;

      for (var c = 0; c < clips.numTracks; c++)

  {

  var clip = clips[c];

  sequence.setInPoint(clip.start.seconds);

  sequence.setOutPoint(clip.end.seconds);

  render(sequence);

  }

}

}

Premiere Pro event list?

$
0
0

In the PProPanel sample (github.com/Adobe-CEP/Samples/blob/master/PProPanel/ext.js) there are sample event hooks for "com.adobe.csxs.events.PProPanelRenderEvent" and "com.adobe.csxs.events.WorkspaceChanged" events but these aren't listed in http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/cs-extension-builder/ pdfs/CC_Extension_SDK.pdf  or anywhere else that I've seen.

 

Are there Premiere Pro events for post-export functions, eg. Final Cut Pro XML or EDL export?

 

Where can I find a list of supported event types fired by Premiere Pro? Alternatively is it possible to have a "wildcard" event handler which is called for all application event types?

 

 


How to get source clip times?

$
0
0

How to get source clip times, for sequence markers or player position or clip start and end points?

 

If I make a sub sequence and change start time, I lose original sequence time values.

 

so I need original clip times. Is there a way to get this?

How to know that a new project is opened from a JSX panel ?

$
0
0

Is there a way to know that a new project (and specifically, a new bin) was opened from a JSX panel ?

 

Thanks,

Oran

Usage of CEFCommandLine parameters

$
0
0

Hi All,

 

Can someone explain use of below two CEF command line parameters in manifest.xml?


(1) --allow-file-access

(2) --allow-file-access-from-files

 

Premiere Pro version: 11.1.0

Extension Type: Panel

 

 

Thanks & Regards,
Meet Tank

Can we integrate Adobe premiere pro or final cut pro in a eCommerce website?

$
0
0

We are planning to build a eCommerce website for music licensing. That ecommerce website can be done either in Magento or in X-cart.

So for the same we wanted to confirm that can we integrate Adobe premiere pro or final cut pro in our website of Magento or X-cart? These tools we wanted to use for give option of video, audio editing, extracting.

So please share your thoughts and API details if any from which we can integrate any of them from Adobe premiere pro or final cut pro with Magento or X-cart.

Thanks in advance.

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!

Viewing all 53010 articles
Browse latest View live


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