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

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


Duplicate sequence?

$
0
0

I've started to have a look through the SDK documents, but just have a quick question about the SDK functionality that I imagine someone well-versed in it should be able to answer pretty easily:

 

Could the SDK be used to create a button (in a custom panel) that when pressed would duplicate the currently selected or currently open sequence, rename it, and move it to a specific place in the project?

 

It seems like the SDK is not concerned with functionality like this, but it would be great for what I want to achieve if it is!

 

Anyone know about this?

Create a custom plugin for Premiere on windows?

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...)

How can I open a local folder view by clicking on a link

$
0
0

Hello All,

 

Is there any way to open a local folder (file explorer not a file chooser) from a link in a premiere pro panel? Is this possible using cep API?

 

Premiere Pro version: 11.1.0

Extension Type: Panel

 


Thanks & Regards,
Meet Tank

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!

About accelerated effects

$
0
0

Hello.

 

How to make PPro 5.5 plug-ins for accelerated effects?

 

I have making Plug-in. but Plug-In will not be displayed the accelerated effects mark.

accelerated_effects.png

How Do you make a plug-in with the accelerated effects?

How to know the extension of an EPR preset

$
0
0

WE have the integrator put only the presets they want the user to user for our Export Controller plug-in. They copy the presets from the Premiere MediaIO/statempresets/ folder.

 

When we get the EPR file it does not tell me what the file extension should be.

 

How do I determine the extension for the file to be saved in my Export Controller from the EPR preset file?


How to enable NodeJs for HTML5 Panels

$
0
0

Hi All,

We are trying to implement downloading assets from url, in our Premiere pro Panel.

From the premiere pro sdk forum we came to know that by using NodeJs we can implement this feature(Downloading file with NodeJS in CEP extension )

Also we have gone through the github sample Nodejs.html (Samples/Nodejs.html at db6086245ee6b64466710056f60ca324fce12880 · Adobe-CEP/Samples · GitHub )

 

Here is the code and Panel screenshots:

function isNodeJSEnabled() {

  if (typeof(require) !== 'undefined') {

  $('#result').val("Node.js is enabled");

  } else {

  $('#result').val("Node.js is disabled");

  }

  }

Nodejs.PNG

 

But when we run the code from our panel, we are getting the message  "Node.js is disabled".

We have added the following values in manifest file

<CEFCommandLine>

  <Parameter>--enable-nodejs</Parameter>

  </CEFCommandLine>

Downloading file with NodeJS in CEP extensionBut still we get the same result. "Node.js is disabled"

We are testing the panel in Windows 7,Adobe Premiere pro CC 2015.2 (9.2.0(41))

 

What are the steps we need to take care in-order to enable NodeJs in our panel?

 

Thanks and Regards,

Anoop NR

set start time of sequence

$
0
0

Hello,

 

Is there any way to set the start time of a sequence?

 

thanks,

Kelly

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

How to invoke JavaScript/ExtendScript for Premiere Pro CC in Mac OS

$
0
0

Looking for a way to run JavaScript aka ExtendScript in Premiere Pro CC

 

Here's what I've got for other Adobe Apps, using AppleScript:

 

tell application "Adobe After Effects CC 2015"  activate  set SomeExtendScript to "ThisVariable='Runs This Js Code';"  DoScript SomeExtendScript
end tell


tell application "Adobe Photoshop CC 2015.5"
  activate  set SomeExtendScript to "ThisVariable='Runs This Js Code';"  do javascript SomeExtendScript
end tell


tell application "Adobe Illustrator"
  activate  set SomeExtendScript to "ThisVariable='Runs This Js Code';"  do javascript SomeExtendScript
end tell

 

But so far nothing for Premiere.

tell application "Adobe Premiere Pro CC 2015"  activate  set SomeExtendScript to "ThisVariable='Runs This Js Code';"  -- Does not work: DoScript SomeExtendScript  -- Does not work: do javascript SomeExtendScript  -- Does not work: do script SomeExtendScript
end tell

How to calculate timecode in second

$
0
0

Hi All,

 

I am using markers#createMarker function to create marker on clip. It expects timecode value in second. Can anyone explain how to convert the timecode in second?

E.g. I want to create a marker at "00:00:02:07" and clip's FPS is "14" then what would be the correct timecode value in seconds?

 

 

Premiere Pro version: 11.0.2
Extension Type: Panel

 

Thanks & Regards,
Meet Tank

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

[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!

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)

PProPanel marker timecode values differ

$
0
0

Creating  a sequence marker using the following code from PPropanel SDK sample, creates a marker with a different timestamp. Could anybody tell me how a supplied timcode in javascript is represented in PPRO ?



var new_comment_marker  = markers.createMarker(12.345);

new_comment_marker.name  = 'Marker created by PProPanel.';

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

new_comment_marker.end  = 15.6789;

 

Inside Marker panel, a marker is created with

Marker In : 00:00:12:07

Marker Out : 00:00:15:15

 

I had an assumption that the values supplied using extension and values presented in PPRO should will be same but this is not the case. Any comments ?

 

1.jpg

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.


CTI.Timecode

$
0
0

Hello,

 

I changed the start time of my sequence to 01:00:00:00 and when I run my script to get the cti timecode it returns the timecode as if it started at 00:00:00:00.  Anyone know why this is happening, is it a bug?  Code below...

 

function returnTimecode()

{

     app.enableQE();

       var seq = qe.project.getActiveSequence();

 

          if (seq != null){

                alert(seq.CTI.timecode);

                } else {

                    alert("Active Sequence required.")

                    }    

}

returnTimecode();

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

Viewing all 53010 articles
Browse latest View live


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