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

Adding cuts, adding effects to clips

$
0
0

Hi Bruce and other panel experts,

 

Thanks for all the support you provide on this forum and for the amazing progress that's been made in Premiere scripting over the last few updates! I had several scripting questions about a panel I’m hoping to write. I wanted to get a few answers about what's possible before I dive in too deep.

 

  1. I see that I can read and set keyframes on an effect that is already added to a clip (great new feature!). Is there a way to add an effect programmatically? What about an effect preset? Doesn’t seem like it, but I wanted to check.
  2. If I have an effect on a clip and the effect has been renamed, is there a way to read that new effect name in a script? I would have expected that's what displayName is for, but in my testing, it doesn't seem to change.
  3. Given a selected clip in a timeline, is there a way to add one or more edits at specified timecodes to it so it gets cut into multiple clips (equivalent to having a clip selected and going to Sequence>Add Edit)? Alternatively, if I could get the clip’s project item and edit it back into the timeline, that would work too. I didn’t think it was possible to edit a clip into the timeline, but in your answer to Rambutan a few threads down, you both seemed to imply that maybe it was...
  4. I can sort of fake all of the above by generating an FCP XML file of a new sequence containing the necessary clips and effects (what I do in my current workflow using a Ruby script that gets hand-imported), but once I bring that XML sequence into Premiere, again, I would need a way to programmatically edit it into the timeline (and be sure that “Insert and overwrite sequences as nests or individual clips” is set the way I need).
  5. Is there a way to access Photoshop information about a clip if it’s a PSD file? Specifically, I’m looking for the presence and properties of any guides that might be in the PSD. I know there’s a Javascript library that looks like it can parse this info out of PSD files, so that would be my plan B for this one.

 

Thanks in advance,

David


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

Scripting - Adding effects

$
0
0

Using ExtendScript, I need to add a Lumetri Color effect to a clip and set the Input LUT to a specific file. I can see the ComponentCollection for the clip, and it looks like the effects are items in this collection. Is it possible to add new effects to a clip, and how do you set their parameters?

Link Media dialog when re-linking files trough code.

$
0
0

Hi,

 

We are integrating  adobe into our workflow automation and are running into what appears to be a bug in the program.

When renaming files to facilitate automatic upload and synchronisation, a dialog shows after the file is re-named and re-linked by code.

This seems buggy to us, as the whole reason of being able to use code for this is to prevent user interaction and thereby user error.

 

The code we use is as following:

 

cep.fs.rename(oldPath, newPath); 

projectItem.changeMediaPath(newPath); 

 

Are we missing something or is this indeed a bug in the program?

 

Kind regards,

Sven

Problems with plugins .bundle from Premiere Pro SDK for macOS

$
0
0

Hi all,

 

I am using:

SDK - Premiere Pro CC 2017.1

Program - Adobe Premiere Pro CC 2017.1

OS - macOS Sierra

 

After compile Vignette plugin from Premiere Pro SDK, it is not load to Premiere. But Premiere founded this plugin.

In log file: "No loaders recognized this plugin, so the plugin is set to ignore."

 

Pasted File at August 17, 2017 5-40 PM.png

 

Does anyone have a solution to this problem? Please, help me.

how to get started with premiere scripting?

$
0
0

Hi. I'm an experienced web developer who's working on a project which requires some scripting in Premiere Pro.

 

My needs aren't highly complicated, and at first I thought "well this looks fine" seeing the CEP samples on github. Never have I have ever seen such bad bad horrible job of creating an API since trying to work with Microsoft's Outlook. There seems to be no manual or proper documentation for Premiere, furthermore, most (if not all? I didn't check) of the links on the github page are dead. Worse, some of the links are supposed to point at a file within that project - upon finding that file (in a different place) it turns out that even the intended lines the link points to are out of date.The official ESTK install links on Adobe's website are dead too, I only finally got it through the Creative Cloud - after enabling "show older apps" of course, which hasn't been a whole lot of help because it's debugging system is so ridiculously out of date. Oh also, some of the examples on github don't even run *as is*. There's no proper guide or quick-start tool, there's not even something like a REPL system that'll allow you to mess around and learn through that.

 

I need to run some really simple operations. I'm not asking for help with figuring out how to do them - I can do that on my own, provided I have some system that allows me to actually understand and learn without banging my head against the wall. Frankly, this is embarrassing and unprofessional from a company this big, and I don't understand it, but maybe someone on this community can point me in the right direction? I just need a way to start messing with this so I can actually learn how to use it.

export frame from premiere pro

$
0
0

Hey,

I'm trying to export a frame from a sequence, based on a code i found in the examples,

 

app.enableQE();

var activeSequence= qe.project.getActiveSequence(); // note: make sure a sequence is active in PPro UI

 

if (activeSequence) {

var time= activeSequence.CTI.timecode; // CTI = Current Time Indicator.

var outputPath= new File("~/Desktop");

var outputFileName= outputPath.fsName + $._PPP_.getSep() + time + '_' + activeSequence.name;

 

activeSequence.exportFramePNG(time, outputFileName);

} else {

alert("No active sequence.");

}

 

And it doesn't do anything. It doesn't throw any errors either, i played around a bit and it's clear that the function exportFramePNG exists, and that the parameters are ok, but nothing happens.

 

when I do

$.writeln(activeSequence.exportFramePNG(time, outputFileName));

it returns false.

 

What's wrong, what can I do?

 

Thanks

How does the XML get affected when i change the position of a video in effect control?

$
0
0

I exported a project as an xml file where i changed the position of the video in the effect control, i want to know where exactly in the xml this gets reflected.I don't see the values (the exact values i saw in premiere pro)in xml, rather i see some other values.Is there any internal calculation from your part?


Premiere data driven clip MOGRT

$
0
0

hello everybody!

 

I'm since some time into adobe prerelease

when i seen the new about "essential graphics" MOGRT, i realized that "yeah the day of editable and animated open captions for Premiere is coming"

 

okay, the end result that i want to do INSIDE premiere, without requiring AE, is :

in fact the main purpose is to be able to sent the PPROJ to our final client. And he will be able to change practically anything with ease : access any caption ; modify the text, change color - opacity - fonts - style . and get INSTANT result, just need a new render.

beside, there can be animation on text

 

this is a AWESOME workflow compared to the "old-but-gold" xml + static png images one, that require many "ping-pong" between client and us for each issue/bad text into the captions.

 

here is a video of the open caption animated effects (i guess those guys are using AE to do this video...) we need to get right into Premiere

https://1drv.ms/v/s!AgtmWMjrj3fPiAAK5U1ZiGPZR3vx

 

 

if we think just a little beyond that - meaning it can be applied to many MOGRT - here is the main goal i've got :

- open a Premiere project. on the timeline (only 1) , there is already a clip - at the very beginning. this clip is the animation effect to duplicate. it can be something that mimic the video of the subway (see over) - or other MOGRT. this clip is infact the imported MOGRT - that is now converted to regular pproj.

- then we "simply" need to duplicate this clip, and for each duplicate/clone, replace : the inside text, the TCin and TCout, the vertical and horizontal position, the justification, the font style/color/format - and so on, assuming they are present inside the JSON

     - perhaps instead of duplicate, it will be better to re-import the MOGRT into the timeline, the name of the MOGRT can be inside the JSON

     - i'm not sure actually, but i guess that a clip will contain ONLY 1 line of text. so we will need to duplicate vertically, on different video tracks, to get an animated block on several lines.

- we can call this a "data-driven_MOGRT" workflow, because after all, it is why MOGRT exist : an easy and fast way to re-purpose them.

- in AE 2018, there is an integrated way of doing it : Animate graphics with data |

 

PS : the sample animation i've create does require Pr 2018, because it use the new "responsive" feature, so that it can lock animated keyframes , so that the animation of text will be exactly the same, whatever the display duration is.

 

 

okay so now about the implementation : i'd like to know/get samples of how to :

- create a panel in Pr2018

- drag&drop or browse a JSON into it - this JSON will containt EVERYHTING needed, since i'm building it from a professional captions software.

- parse it and for each "full line" duplicate the first clip of the timeline, while changing some global parameters like TCin and TCout, and also local parameters like the text inside the text layer (coming from the MOGRT)

 

 

PS : i'm asking everyday about a official/embedded way to import JSON right into Premiere to feed MOGRT, but that seem to be "far fetched" for Adobe, even if it is obvious when you start playing with many clips/MOGRTs in a timeline!

the final goal is that such an integration of JSON for data driven of graphics will exist in near-future-version of Premiere

JSX: Intermittently getting JSON is undefined alert

$
0
0

Hi All,

 

We are intermittently getting JSON is undefined alert while converting object to string using JSON.stringify()

It gets resolved by resetting Premiere Pro preference: Configure preference settings in Premiere Pro
We want to know why and when JSON object is not available in the jsx file. Is there any way to prevent this alert?

 

 

 

Premiere Pro Version: 9.0.0
Extension Type: Panel

 

Thanks & Regards,
Meet Tank

Can I get inFrames[1] on Effect Plugin like on Transition Plugin?

$
0
0

Hi, everyone!

I hope you are going well.

 

I am going to make plugin with gpu accelerated. so I have checked some SDK sample plguins.

 

          ....

prSuiteError Render(

const PrGPUFilterRenderParams* inRenderParams,

const PPixHand* inFrames,

csSDK_size_t inFrameCount,

PPixHand* outFrame)

{

 

     if (inFrameCount < 2 || (!inFrames[0] && !inFrames[1]))

     {

          return suiteError_Fail;

     }

     ....

 

I am sure inFrame[0] and outFrame indicate same address.

I'd like to make outFrame that is related to several pixcel of inFrame.

 

for example: outImg[x].x( or r) = (inImg[x - 5].x + inImg[x].x) / 2;

                    outImg[x].y( or g) = (inImg[x - 4].y + inImg[x - 1].y) / 2;

                    outImg[x].z( or b) = (inImg[x - 10].z + inImg[x - 3].z) / 2; // it is not correct code.

 

But If I change some pixcel data on before render, it is used changed pixcel data in the next render because inFrames[0] and outFrame indicate same address.(here I used inFrames[0] for inFrame)

 

So, I used inFrames[1] for inFrame data.

inFrames[1] and outFrame indicated different address together and I got correct result.

But it is only when the plugin is transition plugin. I cannot get inFrames[1] if plugin is Effect plugin.

 

Debugging result:

----------- effect plugin -----------

     inFrameCount => 1,
     inFrames[0] => exist.     inFrames[1] => no exist.

----------- transition plugin -------

     inFrameCount => 2,

     inFrames[0] => exist.

     inFrames[1] => exist.

 

How can I get two frames ( inFrames[0], inFrames[1]) on Effect Plugin like on Transition Plugin?

 

Regards,

Igor.

Writing script to automate lip-syncing in Premiere for animation series

$
0
0

Hello all,

 

I am a veteran PPro/AE user and beginner programmer attempting to write a script to automate the lip-syncing tasks I do within an animation series.

 

Workflow

This project involves video clips that can stretch to 30+ minutes, making placing the required mouth images over each frame of footage a very numbing, tedious process. In short, I'm given a Premiere Project that contains near complete footage, with the only thing missing being the mouths for each character onscreen. We are provided the correct mouth images - in .PNG format - within a separate folder.

 

I then go through and place the correct mouth images over each character in my footage, with the particular image used being dictated by whether the character is speaking. Luckily, I don't need to move the mouths around using any of the Transform properties or keyframe anything...they are already saved with the correct dimensions and placement, so all I'm doing is dragging-and-dropping the correct mouth image over my footage, one frame at a time. However, placing images of one frame length for each and every frame can quickly get tedious when you're working with shots that can be 30+ seconds, in an animation project that runs over 30min.

 

As far as the variety of our mouthsets goes, we use three main images to cover each character speaking. These images are divided as such:

  • Closed Mouth (character isn't speaking) - usually designated as FILENAME-C.PNG
  • Mid Mouth (character's mouth is halfway open) - usually designated as FILENAME-M.PNG
  • Open Mouth (character's mouth is fully open) - usually designated as FILENAME-O.PNG

 

Quick visual example of this:

example mouths v2.png

 

 

Scripting Solution

Now, for the scripting goodness...I'm trying to write a script that would automate this workflow. The idealized, script-assisted workflow would look as such:

1) I set In and Out points on the timeline over the footage I want to automate mouth placement. This keeps it contained to just one shot and one corresponding mouthset, instead of the entire timeline.

2) I launch the UI/panel for my script

3) I drag and drop the three main images I need placed into the panel. The script would ideally know which mouth to use based on the filename (FILENAME-C.PNG to designate a mouth that's closed, FILENAME-M.PNG for a mouth that's midway open, FILENAME-O.PNG for a mouth that's fully open, etc).

4) I hit Run.

5) The script looks through the specific frames I've selected via In and Out points. For each frame where the underlying audio is at a minimum (-260dB to -30dB), it pastes the closed mouth file (FILENAME-C.PNG). For each frame where the audio is between -30dB and -10dB, it pastes the mid mouth file (FILENAME-M.PNG). For each frame where the audio is between -10dB and 0dB, it pastes the fully open mouth file (FILENAME-O.PNG).

 

Now, as far as how to specify this in coding?

I have absolutely no clue. This is where I turn to the community for guidance and suggestions.

 

My understanding of Javascript is pretty minimal but I can crunch through the basic coding and tutorials and learn it quickly (I did some programming in C/C++ many years ago; it wasn't too hard for me to pick up, nor have I had difficulty with HTML or CSS).

 

From my searches, I believe that I would need to build the basic panel in HTML 5 with some buttons that trigger the scripting. Once I have a working panel/UI, I can start to communicate with Premiere using ExtendScript.

 

I've seen examples of this done in After Effects, so I know it can be done (see mamoworld's very impressive Auto Lip-Sync ), but I have no idea how to pull this off inside of Premiere. Most importantly, the part where I tell the program to look at the underlying audio and paste a one-frame image file based on the audio clip's volume is one thing I'm very uncertain about.

 

Any ideas, help, suggestions or advice about what to do?

Not able to change the start and end values of track item

$
0
0

I am developing an extension for Premiere Pro.I need to import .mogrt into sequence and am able to do that using the API importMoGRT provided by Premiere Pro.

 

API

var newTrackItem = activeSeq.importMGT( mogrtToImport.fsName, targetTime.ticks, vidTrackOffset, audTrackOffset);

 

In the API i am able to change the targetTime.ticks which sets the starting time of the track item.But where do i set the end time/duration of the trackitem

 

Alternate option

 

I tried to use the attributes of the trackitem namely start, end, inPoint, outPoint (In the API documentation it is given as read/write attribute).But i am not able to change any of these attributes.

 

How do i set the start, end, duration of the trackitem?

Premiere Pro SDK 2018 - Multiple effects in single bundle

$
0
0

The Premiere Pro SDK 2018 announced new registration method that allowed to have more than one effect/transition in a single bundle. The PiPL resource is for backward compatibility.

 

But when I look at the samples I see:

1. Effects are still have PiPL resource, but "Kind" property now have value "AEEffect".

2. PiPL is array of 11 properties describing single effect which contains entry point function name.

 

And there is now sample with 2 effects in single bundle.

 

Could somebody give a guid how to create 2 effects in single bundle? Do I need to make PiPL resource as array of "array of 11 properties" to describe 2 effects?

 

Thanks.

Is it possible change Adobe Premiere Preferences using ExtendScript?

$
0
0

Is it possible to change Adobe Premiere Preferences using ExtendScript?

Specifically looking to control Preferences > Media > Timecode and choose from one of the three available options using ExtendScript.


PrSDKVideoSegmentSuite->GetNextKeyframeTime not working in After Effects

$
0
0

I am developing a GPU plugin based on the PrGPUFilterBase class. This class acquires a PrSDKVideoSegmentSuite and stores it in mVideoSegmentSuite to access parameters from the GPU entry point (the usual way to access parameters is not available when running from the GPU entry point). The mVideoSegmentSuite->GetParam(...) method works as expected both in Premiere and After Effects, but unfortunately the mVideoSegmentSuite->GetNextKeyframeTime(...) method works only properly in Premiere and acts as if there were no keyframes present when called from After Effects.

 

- Is this a bug or is this method just not supported in After Effects?

- What is the recommended way to get keyframe times running a PrGPUFilterBase effect in After Effects?

 

Thanks, Stefan

Exporter on Windows: temporary file _00_ at end of process / exportReturn_InternalError

$
0
0

Hi,

i have written a custom exporter plugin and i have noticed on Windows that when the export process is over (after exiting exSDKExport) Media Encoder will create a copy of the exported file, with the extension _00_, and then rename it and delete the original exported file.

My problem is that the format i export for produces quite big files (usually several GB), so this copy/rename process takes quite long and requires the double of space i would need.

Sometimes during this process the exporter quits and i get error code 3 in the log, which i think is  "exportReturn_InternalError", but actually at this point i have already exported all the frames and closed the file.

I have found some more information here in the forum, but i could not find any note about this process in the Premiere_SDK_Guide.

Can someone point me the where this process happens in the code?

Is there any way i can control or modify this process?

Thank you,

bye,

S.

apply an effect on a clip with script

$
0
0

Hi,

tried to apply an effect to a clip, I could get the list of effects with QE object, but I couldn't find a function such as applyEffect for premiere pro. do you have any idea on how to apply an effect on a clip with the script?

 

Best Regards,

Daniel

Did Premiere 2019 drop support for CEP 6.x extensions?

$
0
0

My Premiere plugin built two years ago on CEP 6.0 no longer appears in the list of extensions after upgrading to Premiere 2019.

 

I updated the Premiere versions supported in manifest.xml to include 13.x and manually installed the extension. The installation went fine, without any errors. ExManCmd reports that the extension is installed, but nothing appears in Premiere's Extensions menu.

 

Did Premiere 2019 drop support for CEP 6 or is there something I need to do differently?

Scripting in Premiere CS6

$
0
0

I think i know the answer but i've seen some searches that suggest it is possible and i can see PPro as a target in ExtendScript

 

Can i script PPro CS6? Is there a scripting guide like there is for After Effects?

 

If not, are there any known plans to add this?

 

many thanks
Paul

Viewing all 53010 articles
Browse latest View live


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