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

Force close without saving

$
0
0

Two part question:

 

What is Premiere writing upon closing a document?
It's getting in the way of workflows that I'm developing, as it's trying to write to a write-protected file. I can't diff between the before and after files to find the difference since the prproj is binary.

 

And if you're curious what the message is: If I run app.project.closeDocument() on a perforce file that is not checked out(read-only), the error that occurs is:

"Could not open the project file with write access. The file may be locked or you may not have permission to write to this location.

Select 'Save As' from the File menu to save the project to a new location."

 

Second part:
app.project.closeDocument() - is there a force argument that can be handed to this? or a completely different command that will say "when I close you, don't save any information to the file?"


Create Premiere project programmatically

$
0
0

Hi,

 

In order to better integrate my app with Adobe Premiere, I would like the ability to create a Premiere project and populate it with certain clips.

 

Sony Vegas, for example, allows to pass by command line a script, which can do everything I need. However, I can't think of a way to do this with Premiere.

 

I think I could have an empty project to copy it whenever I need, and then have the user load the required clips through a Panel action, but I would prefer to do it in one step.

 

Is this possible at all?

 

I don't think the "Importer API" is really related, but I'm checking it just in case.

 

Best regards.

Export one clip of my track

$
0
0

Hello,

 

I'm trying to export one clip of a track with Media Encoder. I can extract start and end time but  the function app.encoder isn't useful.

 

There any solution for this problem?

SDK Panel only works when ExtendScript Toolkit is open

$
0
0

Whenever I open Premiere Pro and try to use the SDK Panel I've created, I keep getting the notification: "Run Script Error: undefined is not an object". When I open Extendscript Toolkit, however, it functions fine. Do I have to finalize my project before it can run with just Premiere Pro, or what am I missing here?

 

Thanks,

 

Justin

Marker Name and Comments not working in Premiere pro 2018

$
0
0

Hi All,

 

The Markers created from script is not able to assign the Name and Comments to the marker in Premiere pro 2018,

This is working fine in premiere pro 2017. Markers are created, but no name and comments

 

Here is the sample code from github

 

if (projectItem.type == ProjectItemType.CLIP ||

projectItem.type == ProjectItemType.FILE) {

markers = projectItem.getMarkers();

if (markers) {

var num_markers = markers.numMarkers;

var new_marker = markers.createMarker(1.345);

var guid = new_marker.guid; // new in 11.1

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

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

new_marker.end = 2.6789;

}

}

 

Anyone else facing the same problem?

 

Thanks and Regards,

Anoop NR

How to know that the user executed the 'play' command ?

$
0
0

Hello,

We have an importer plugin (that streams media from a remote storage) and a PPro JS/JSX Panel (that browse that remote storage).

 

We need to know as soon as the user invoked the play command (clicked the play button, or the shortcut key, or whatever) even before the PPro started the actual playback, so we can start streaming ASAP and fill the playback cache properly (to avoid drop frames during playback).

 

Today, we can tell that the PPro started playing using our other (transmitter) plugin, when the StartPlaybackClock method is invoked. But that is "too late" - this few hundreds of milliseconds would have helped us to avoid drops. (Likewise, If there was such event on the JSX layer, it would have been helpful too - we could find a quick way to transmit the info down to the C++-importer-plugin. Currently we found only a way to observe the playback-state by polling).

 

Thanks,

Oran Gilad

XTRMX R&D Leader

Where is the API Documentation for the Premiere Pro Panel SDK?

$
0
0

I see the links to the sample application and the getting started guide, but where is the actual SDK documentation?

 

Where is the documentation that describes the options of manifest.xml?

Where is the documentation for the the PPRO javascript API for the type of functions used in the sample application (ie: "$._ext_PPRO.importFiles()")

How about documentation for this global "__adobe_cep__" object that I see in CSInterface.js in the example?

 

Thank you

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


Add Track audio/video to sequence

$
0
0

It there a way to add a new audio or video track into a sequence?

 

The way it would be used it to import footage into an existing sequence, but create a new track and import the clip onto that so that nothing would be overwritten?

 

Is this possible or offered yet?

How does ProjectItem.findItemsMatchingMediaPath() work?

$
0
0

Bruce Bullis: API question for you!

 

I'm trying to use the ProjectItem.findItemsMatchingMediaPath() function to locate a previously imported ProjectItem. Contrary to my previous assumptions, the Media Path is actually related to the path of a clip on the file system. Specifically, it is not related to the item's treePath in any way.

 

In some "throw spaghetti at the wall and see what sticks" testing, I've found that specifying either:

 

  1. the exact file system path of the asset in question, or
  2. the file name of the asset in question

 

the function will return usable results. This leads me to a few questions, related to how this API actually works internally:

 

  1. Is it overloaded to take either a filePath or a fileName?
  2. Or does it simply parse out the fileName from a submitted path?
  3. Does it resolve directories at all? (e.g. will it return a list of any ProjectItems with assets in the specified directory location?)

 

Input would be greatly appreciated.

What's the difference of yuv420 PrPixelFormats

$
0
0

the prm sdk define below yuv420 PrPixelFormats:

 

PrPixelFormat_YUV_420_MPEG2_FRAME_PICTURE_PLANAR_8u_601    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', '1', '2'),

PrPixelFormat_YUV_420_MPEG2_FIELD_PICTURE_PLANAR_8u_601    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', 'i', '2'), 

PrPixelFormat_YUV_420_MPEG2_FRAME_PICTURE_PLANAR_8u_601_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', '1', 'f'),      

PrPixelFormat_YUV_420_MPEG2_FIELD_PICTURE_PLANAR_8u_601_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', 'i', 'f'),       

PrPixelFormat_YUV_420_MPEG2_FRAME_PICTURE_PLANAR_8u_709    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', '1', '7'),       

PrPixelFormat_YUV_420_MPEG2_FIELD_PICTURE_PLANAR_8u_709    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', 'i', '7'),       

PrPixelFormat_YUV_420_MPEG2_FRAME_PICTURE_PLANAR_8u_709_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', '1', 'F'),       

PrPixelFormat_YUV_420_MPEG2_FIELD_PICTURE_PLANAR_8u_709_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('y', 'v', 'i', 'F'),       

PrPixelFormat_YUV_420_MPEG4_FRAME_PICTURE_PLANAR_8u_601    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', '1', '2'),       

PrPixelFormat_YUV_420_MPEG4_FIELD_PICTURE_PLANAR_8u_601    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', 'i', '2'),       

PrPixelFormat_YUV_420_MPEG4_FRAME_PICTURE_PLANAR_8u_601_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', '1', 'f'),       

PrPixelFormat_YUV_420_MPEG4_FIELD_PICTURE_PLANAR_8u_601_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', 'i', 'f'),      

PrPixelFormat_YUV_420_MPEG4_FRAME_PICTURE_PLANAR_8u_709    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', '1', '7'),       

PrPixelFormat_YUV_420_MPEG4_FIELD_PICTURE_PLANAR_8u_709    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', 'i', '7'),       

PrPixelFormat_YUV_420_MPEG4_FRAME_PICTURE_PLANAR_8u_709_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', '1', 'F'),       

PrPixelFormat_YUV_420_MPEG4_FIELD_PICTURE_PLANAR_8u_709_FullRange    = MAKE_PIXEL_FORMAT_FOURCC('Y', 'v', 'i', 'F'),      

 

but,what's the difference between these formats? I know 601 & 709 means BT601 & BT709 colorspace,but what's the meaning of word "FRAME","FIELD","MPEG2","MPEG4", and "FullRange"?

Getting a dynamic link id in Premiere Pro

$
0
0

Hi experts, is there a way to get a unique id for a linked asset in Premiere Pro such that it can be identified in After Effects? I've noticed that a parameter 'dynamicLinkGUID' exists in AE but I couldn't find a corresponding value in PPro.

 

For background I'm trying to script some changes to the text of a title and previous answers have said that the best way to do this is by sending ExtendScript to AE over a dynamic link. This works, except I can't seem to find a way to easily identify the exact composition I want to change in AE when I have multiple links.

 

Thanks!

Lock / Unlock audio or video track

$
0
0

I was surprised after searching the forum that this question hasn't already come up.

 

I checked the sample and reflections but could not find any methods that would allow me to lock or unlock specific tracks, much like the setMute() / isMuted() code in the sample.

 

Do we have this capability? Would be a huge help.

HTML5 Panel passing JSON data to javascript

$
0
0

Hi Bruce,

 

I will soon be working on an HTML5 panel that will be receiving some JSON data through a URL call.

Is there a way to pass this JSON data to the javascript portion of the panel, so I can access all the objects?

 

thanks,

Kelly

ExtendScript Toolkit and Premiere Pro?

$
0
0

I'm just starting to dive into Premiere Pro extension development and I'm finding it difficult to get a firm grasp on the environment. I get that there are two DOMs to deal with Application/ExtendScript (jsx) and HTML (js). Cool. However, I'm having a tough time figuring out how to really examine the environment. I've configured my environment to debug HTML DOM stuff that I try but I'm not quite sure how to debug the Application/ExtendScript stuff.

 

Any pointers?


How to modify a clip's start, inPoint or duration ?

$
0
0

Hi,

I can get any sequence's clip start (offset on track), inPoint (its offset from the source origin) or duration on track - either by using ExtendScript or a C++ plugin.

But I can't find a way to modify these properties. Is there any such way using either ExtendScript or the C++ SDK ?

Premiere Pro CC 2017 Plug-in SDK Download Link is Broken

HDR video export from Media Encoder

$
0
0

OK, we've identified the problem.  It's something in Media Encoder (not Premiere).  So, if you:

 

1) make a media encoder job, and convert exr files to our format, then HDR export works fine.

2) if you do the exact same thing with an HDR video in media encoder, you do NOT get HDR export.

3) HOWEVER, if I take the same HDR video file, drop it into a Premiere project and then put it on the timeline, and then export THAT file, then we do get HDR pixels properly.

 

So, this appears to be a bug in Media Encoder and how it detects whether the input file is an HDR input or not.  Where do I file bugs?

 

This wasted a ton of time, btw - you need more information in the export record stuff, so we can see what ME/PPro *thinks* it's dumping out...

Focus Panel with Keyboard?

$
0
0

Is it possible to set up Premiere Pro to be able to switch to a target Panel or Extension? There are two interactions we have in mind for this:

 

  1. [Registerable?] Keyboard Command to open or focus a panel/extension.
  2. OS keyboard commands to switch to floating window.

 

It's really annoying to keep having to use the mouse to switch to a specific extension panel.

 

What's more, with respect to #2 (on macOS, at least), it seems that it's possible to use the built-in window-switching keyboard shortcut [⌘`] (command tick) to switch from a floating panel to the main application, but not back to the floating panel! Once the main app has context, it appears to swallow the command entirely...

How find clipitem duration in XML with Time Remap

$
0
0

Hello,

If need find timecode clipitem it's easy. Take TC source file and plus in and out tags.

But how made it if we have Time Remap?

Where can I find formulas for calculating TС In / Out?

Dropbox - 1.xml

Viewing all 53010 articles
Browse latest View live


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