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

Premiere Pro 11.1 update changes loading of unsigned panels; easy fix!

$
0
0

The recently-released version of Premiere Pro integrates CEP version 7.

 

To enable the loading of unsigned panels in the new version:

 

Mac: Run the following from a Terminal window:

 

defaults write /Users/<username>/Library/Preferences/com.adobe.CSXS.7.plist PlayerDebugMode 1

 

Windows:  Update your registry entry for CSXS.7, adding PlayerDebugMode = 1 (just like you did for the CSXS.6 key).

 

csxs7.png


Change sequence Premiere Pro

$
0
0

Hi all ,

 

I try to get the name of the sequence when the user changes sequence.

Example: the editor works in sequence "BLABLA" my started application get the sequence name . When the user changes sequence I would like to get the name of the second sequence.

Via an event or other?

 

I thought of a timer or pooler but is this a good practice?

 

Thanks :-)

Importing Markers

$
0
0

I'm currently trying to import markers in a Premiere plugin.

I'm using a Premiere Import plugin and an After Effects Effect plugin.

The AEGP_MarkerSuite2 offers a NewMarker API, but it seems that it's not available in Premiere.

The PrSDKMarkerSuite available in Premiere doesn't look to offer any way to create markers.

 

What's the most straight forward way to import a bunch of markers into Premiere from a plugin?

 

Thanks

passing vectors,maps from javascript to c++ shared library

$
0
0
  • Is it possible to pass vectors or maps from javascript to c++ shared library?
  • I went through the Extendscript Toolkit SDK which contains sample programs which shows how to pass data from c++ and javascript
  • I am able to pass basic data types such as integer and character etc to c++ shared library through the structure called TaggedData
  • Iam not able to send vector or maps to c++ shared library
  • If i alter the TaggedData structure(datas that are communicated between javascript and c++) then the code will fail
  • Is there any possible way to send vector and maps to c++ shared library?

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

How to import .mogrt ? [Scripting]

$
0
0

Hi...

 

I have a .mogrt file made with Essential Graphics in Adobe After Effects 2018...

How can I import it to my existing project with scripting ?

I mean I want a code to put it in my .jsx file and I replace a path Then it imports the file into my time line.

Rightnow it works when I drag my .mogrt from Essential Graphics Window in premiere but I want to do it with scripting... ( Like ImportFile() )

 

Thanks...

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

Access Premiere clip colors

$
0
0

I just started learning scripting for AE and Premiere, so excuse me if I use any wrong terminology.

 

I just need to know if through scripts, I can automate the label colors of the clips on the timeline based on the track they live on.

 

I usually color code my clips while editing, so all clips on the same track have the same color. So I was hoping that, instead of me changing the clip manually when I add it to the track, there would be a way to tell Premiere to change all clips on V1, for instance, to one of the available Label Colors.

 

I hope my question makes sense.


Editing clips with ExtendScript

$
0
0

hello, you hardworking, knowledgeable people!

 

I desperately need to automate a big part of the editing process in Premiere.

For the next project we will be recording tons of footage, where the main action on video will be repeating with variations many many times. We then need to split the long recordings into separate chunks. I will be able bring in time markers, for where to make the cuts.

But I've hit a wall when trying to manipulate clips on the timeline with ExtendScript. I can read a bunch of info about the clip, e.g.:

start

end

inPoint

outPoint

(.seconds and .ticks)

But I'm unable to change any of those values. And the only functions I've found deal with selecting a clip i.e. isSelected() and setSelected()

 

Are there any ways to trim/cut/move, whatever, clips on the timeline using ExtedSctipt scripts, or am I badly out of luck?

And to finish off what I'm trying to do I'll need to do something like "Make Subsequence" with all of the cuts, to separate them into their own videos I can then export, again looking to automate this.

 

Many thanks!

ExtendScript importFiles() bug?

$
0
0

I have a CEP panel which is downloading a proxy video from an external source then scripting its import into Premiere Pro. Currently I'm running Premiere Pro on Windows (10).

 

The panel is currently downloading to the system temporary directory, but it looks like Premiere Pro or ExtendScript is massaging the supplied file name, which is causing an error for some reason. For example if the panel downloads to:

C:\Users\Philip\AppData\Local\Temp\2017-09-23T215101Z_1_LWD0012KBA6VB_RTRWNEV_C_6151-STORM -MARIA-DOMREP.MP4

then this is pushed into Premiere Pro with app.project.importFiles ([File(fileName)]) then the application pops up an error dialog:

File Import Failure

~\AppData\Local\Temp\2017-09-23T215101Z_1_LWD0012KBA6VB_RTRWNEV_C_6151-STORM-MARIA-DOMREP. MP4

Unsupported format or damaged file.

 

Note that:

a) The file itself is fine and I can manually import it into Premiere Pro successfully.

b) If I change the panel so it downloads to a directory outside of the home/library area, for example "C:\temp" then the importFiles() call also works file. This isn't a very satisfactory workaround though as it means hardwiring the download location.

 

It looks like maybe there's an inconsistency in the handling of the file name; the fully qualified Windows file name is being converted to a Unix/OSX "~" relative file name, but then Premiere Pro can't make use of that file name.

 

Is this a bug?

Placing/moving clips in a sequence at sub-frame accuracy

$
0
0

Hi all, anyone got a workaround using supported or unsupported APIs to place or move a clip in a sequence using seconds or ticks instead of timecode?  Working with audio files and need to place items very accurately on the timeline.

 

1st try: Got clip placement working but can only give times in TC ie snapped to frames

2nd try:  Can set the CTI using ticks which is great, can omit a start time when placing a clip which uses the current CTI, BUT the placed clip time still snaps to frames .

3rd try: Call a Powershell script which "presses" the "," key which accurately inserts a clip to the current CTI, but can't change the track targeting programmatically so has limited use besides the obvious hackz.

 

PS: This is all while "Show Audio Time Units" is active for the sequence.

PPS: I've tried the alignToVideo = false option of the insert function and doesn't  seem to do anything

 

Any help is appreciated.

 

TNKS!

 

G

Plug-In not showing up in premiere pro

$
0
0

Hello, I'm from accevolution (www.accevolution.net) and we've got the problem that our plugins are not showing up in premiere pro at about 30% of the customers machines. Our workaround at the moment is to tell the customers to install the most recent graphics card driver, launch premiere pro while holding down the shift key and if this doesn't help, to set the ignore flag in the registry here: 3. HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\11.0\PluginCache.64\en_US3. HKEY_CURRENT_USER\Software\Adobe\Premiere Pro\11.0\PluginCache.64\en_US to "0".

 

Any suggestions why they are working perfectly on 70% and not showing up on 30%? From those 30% that have trouble are 99% windows-user, but we also got a few mac users with that problem.

 

It would be great if somebody could give me a hint.

 

Best regards,

 

Wolfram

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.


QE: What is this rabbithole?

$
0
0

Soooo as the title asks: What is QE? There's absolutely no documentation on it, and it appears to house most of the information that we want to access, albeit not reliably.

Most importantly out of anything that I'm looking for - why is there no documentation on not just QE, but the rest of everything within Premiere's capabilities of extendscript?

A single piece of code on Github is not sufficient for a documentation substitute.

 

As far as the seeming instability of QE:

Consider the following code for Premiere Pro CC 2015:

 

app.project.activeSequence.exportAsFinalCutProXML("C:\\Users\\user\\Desktop\\XML_Testing.xml")


app.enableQE()
var mySeq = qe.project.getActiveSequence(0)
var myTrack = mySeq.getVideoTrackAt(0)
var myClip = myTrack.getItemAt(0)
myClip.name

 

If I have a project open in Premiere and execute this using ExtendScript Toolkit, I receive back a myTrack object with a name of 'Wildlife.wmv'.
If I then switch to a new project in Premiere(does not contain 'Wildlife.wmv') and re-execute that same code in ExtendScript Toolkit, the myTrack object stays the same, and I don't receive a new object.

 

This seems hazardous at best.

 

Thank you.

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


Still image importer - how to figure frame rate

$
0
0

Hi, I am developing still image importer and I am confused how to compute frame number in asynchronous aiInitiateAsyncRead method. Theoretically, it should be something like imSourceVideoRec.inFrameTime / ticksPerFrame.  I can use GetTicksPerVideoFrame() to figure out ticks count per some specific framerate, but how do I figure out which framerate is used?   (users can change framerate that is used in "settings - media - indeterminate media timebase" and I don't want to provide incorrect frames...)

Is this information provided somewhere along lifycycle of importer and I just didn't noticed it? Or am I using completely wrong approach?

Selected clip in timeline?

$
0
0

Is there anyway to get the selected clip in a timeline using ExtendScript? And also get that clips in/out point (and other metadata).

 

If not, any plans to implement it? I'm currently looking to do a "Publish" tool in Premiere for a vfx pipeline and I need to be able to "do stuff" on the selected clip.

 

/Simon

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

Metadata tags creating markers

$
0
0

Hi,

 

I was wondering if there are any (preferably MXF) metadata tags that will be represented as markers when the file containing these is being imported to Premiere --- or is an XMP sidecar the only way to go here? The idea behind this is to (externally) consolidate the individual clips from a (flash) disk to a single file and have markers where the previously-single clips start.

My extension fails to install with status = -403 and -156

$
0
0

I'm struggling with getting my extension to install using ExManRoot. It's an extension for Premiere Pro CC 2015, and is meant to be compatible with version 9.0 and upwards.

 

Here is my manifest:

<?xml version="1.0" encoding="UTF-8"?><ExtensionManifest Version="5.0" ExtensionBundleId="com.thedinermusic.thediner" ExtensionBundleVersion="1.0.0"  ExtensionBundleName="The Diner" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">  <ExtensionList>  <Extension Id="com.thedinermusic.thediner" Version="1.0" />  </ExtensionList>  <ExecutionEnvironment>  <HostList>            <Host Name="PPRO" Version="[9.0,10.9]" />  </HostList>  <LocaleList>  <Locale Code="All" />  </LocaleList>  <RequiredRuntimeList>  <RequiredRuntime Name="CSXS" Version="6.0" />  </RequiredRuntimeList>  </ExecutionEnvironment>  <DispatchInfoList>  <Extension Id="com.thedinermusic.thediner">  <DispatchInfo >  <Resources>  <MainPath>./index.html</MainPath>  <ScriptPath>./jsx/import.jsx</ScriptPath>                    <CEFCommandLine>                        <Parameter>--enable-nodejs</Parameter>                    </CEFCommandLine>  </Resources>  <Lifecycle>  <AutoVisible>true</AutoVisible>  </Lifecycle>  <UI>  <Type>Panel</Type>  <Menu>The Diner</Menu>  <Geometry>  <Size>                            <Height>420</Height>  <Width>620</Width>  </Size>  </Geometry>  <Icons>  <Icon Type="Normal">./icons/dinericon.png</Icon>  <Icon Type="RollOver">./icons/dinericon.png</Icon>  <Icon Type="Disabled">./icons/dinericon.png</Icon>  <Icon Type="DarkNormal">./icons/dinericon.png</Icon>  <Icon Type="DarkRollOver">./icons/dinericon.png</Icon>  </Icons>  </UI>  </DispatchInfo>  </Extension>  </DispatchInfoList></ExtensionManifest>

 

I used ZXPSignCmd (following these instructions) to sign and package my extension into a ZXP file. I then attempted to install the package using ExManRoot, but got the error: "Failed to install, status = -403!"

 

Thinking it had to do with the fact that I hadn't set an install location for the ZXP, I tried uploading the ZXP file I just made to my developer portal using the online packager, with the following settings:

 

Screen Shot 2016-07-05 at 12.03.51 PM.png

I then downloaded the ZXP file it generated through the developer portal, and attempted the install again. This time I got the error: "Failed to install, status = -156!"

 

Can someone tell me what these errors mean? No amount of Googling has led me to an explanation as to what status codes 403 and 156 are.

 

My first thought is that, as you can see in my screenshot, the online package automatically downcases the install location. I entered $adobecommon/CEP/extensions in the "custom location" dialogue, but it changes it to @adobecommon/cep/extensions. I believe this is an issue on Mac due to files and folders being case-sensitive (I'm testing on a Mac running Yosemite). Perhaps that's what's going on? If so, how can I force it to use the proper case?

 

I'm at a total loss here. Been trying to package/submit this extension for months now. Anyone who can help me get this damn thing accepted by the review process will officially be my best friend for life.

Viewing all 53010 articles
Browse latest View live


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