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

insertClip() moves clips out of sync

$
0
0

Hey guys, quick question about the insertClip() function.

 

Does anyone know of a simple way to keep tracks in sync when using insertClip()? I'm inserting a clip at the beginning of my sequence on V1. Everything works as expected except clips on the higher tracks do not move down the timeline with the V1 clips.

 

Sync locks are on, so assuming it's an ExtendScript issue. Any help is greatly appreciated—thanks!


AE fails to load PRM plugin

$
0
0

I build an Exporter plugin for Premiere as a dot PRM file.  Zal Lam says I need to put it into C:\Program Files\Adobe\Common\Plug-ins\CS5.5\MediaCore folder so the render will be seen in the queue and access MediaCore libraries. 

 

After Effects is trying to load my Premiere Exporter plug-in and giving a failed to load warning. 

 

How do I make my Premiere plug-in only be seen by Premiere and not also by After Effects?

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)

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?

Downloading file with NodeJS in CEP extension

$
0
0

I'm trying to get file downloading with NodeJS working in my CEP extension for Premiere Pro CC 2015. I have the following script:

 

var http = require('http');
var fs = require('fs');
var file = fs.createWriteStream("file.jpg");
var request = http.get("http://i3.ytimg.com/vi/J---aiyznGQ/mqdefault.jpg", function(response) {    response.pipe(file);
});

 

The script works perfectly well if I run it on it's own. For example, if I put it in a file called test.js, and run node test.js in terminal, it successfully saves the image to the same directory the script is in.

 

When I include it in my CEP extension, however, nothing happens. The script executes without errors, but no file is downloaded anywhere. Even if I try:

try {     response.pipe(file);     alert("File downloaded");
} catch(e) {     alert(e);
}

 

The "File downloaded" alert pops up. So the lack-of-download doesn't seem to be from an error in the code, but perhaps in the way CEP works itself? I'm at a loss. Any suggestions?

 

Thanks!

Getting duration out of pproTicksIn/pproTicksOut

$
0
0

Hi there

 

I’m trying to get the duration of a clip from an exported finalcut pro xml out of premiere pro cc. Somehow it seems my following calculation is wrong. TICKS_PER_SECOND is 254,016,000,000 (Source Post).

 

TimeInSec = (pproTicksOut / TICKS_PER_SECOND) – (pproTicksIn / TICKS_PER_SECOND)

 

With example data attached that results in TimeInSec = 37.32. Adobe Premiere shows duration for that clip of “00:00:36:20” (920 Frames).

Is someone able to explain, how to calculate the same duration as premiere with the data given from an exported finalcut pro xml?

 

Thanks a lot

JW

 

Example ClipItem Node from exported xml:

<clipitem id="clipitem-13051" frameBlend="FALSE" premiereChannelType="stereo">

                <masterclipid>masterclip-4999</masterclipid>

                <name>Test_audio.wav</name>

                <enabled>TRUE</enabled>

                <duration>3750</duration>

                <rate>

                                <timebase>25</timebase>

                                <ntsc>FALSE</ntsc>

                </rate>

                <start>82</start>

                <end>-1</end>

                <in>0</in>

                <out>933</out>

                <pproTicksIn>0</pproTicksIn>

                <pproTicksOut>9479877120000</pproTicksOut>

                <file id="file-4999"/>

                <sourcetrack>

                                <mediatype>audio</mediatype>

                                <trackindex>1</trackindex>

                </sourcetrack>

                                <filter>

                                                <effect>

                                                                <name>Audio Levels</name>

                                                                <effectid>audiolevels</effectid>

                                                                <effectcategory>audiolevels</effectcategory>

                                                                <effecttype>audiolevels</effecttype>

                                                                <mediatype>audio</mediatype>

                                                                <parameter authoringApp="PremierePro">

                                                                                <parameterid>level</parameterid>

                                                                                <name>Level</name>

                                                                                <valuemin>0</valuemin>

                                                                                <valuemax>3.98109</valuemax>

                                                                                <value>0.530654</value>

                                                                </parameter>

                                                </effect>

                                </filter>

                <link>

                                <linkclipref>clipitem-13051</linkclipref>

                                <mediatype>audio</mediatype>

                                <trackindex>5</trackindex>

                                <clipindex>1</clipindex>

                                <groupindex>1</groupindex>

                </link>

                <link>

                                <linkclipref>clipitem-13063</linkclipref>

                                <mediatype>audio</mediatype>

                                <trackindex>6</trackindex>

                                <clipindex>1</clipindex>

                                <groupindex>1</groupindex>

                </link>

                <logginginfo>

                                <description></description>

                                <scene></scene>

                                <shottake></shottake>

                                <lognote></lognote>

                </logginginfo>

                <labels>

                                <label2>Caribbean</label2>

                </labels>

</clipitem>

<transitionitem>

                <start>990</start>

                <end>1015</end>

                <alignment>center</alignment>

                <cutPointTicks>121927680000</cutPointTicks>

                <rate>

                                <timebase>25</timebase>

                                <ntsc>FALSE</ntsc>

                </rate>

                <effect>

                                <name>Cross Fade (+3dB)</name>

                                <effectid>KGAudioTransCrossFade3dB</effectid>

                                <effecttype>transition</effecttype>

                                <mediatype>audio</mediatype>

                                <wipecode>0</wipecode>

                                <wipeaccuracy>100</wipeaccuracy>

                                <startratio>0</startratio>

                                <endratio>1</endratio>

                                <reverse>FALSE</reverse>

                </effect>

</transitionitem>

 

<!-- Further clipitems -->

Attach Proxies arguments

$
0
0

clip.attachProxy(path, true/false)

What's the true/false?
If it's true, it looks like it's replacing in the bin. The clip gets renamed, shot timing gets altered (we're using metadata), and the path gets replaced.
If false, acts as one would expect - it's attaching to the file, not replacing it.

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


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

Is it possible to load a bin item in the Source or Program Panel?

$
0
0

Is it possible -- I know it wasn't years passed -- to load a bin item in the source monitor by means other than file path?  I'd love to be able to load multicam source sequence into the source monitor.  Or a sequence into the record monitor.  Possible yet?

Can't install AdobeExtendScriptToolkit_4_LS22

$
0
0

I want to write some scripts for Premiere -- mainly for overcoming the weakness of the Markers panel, which doesn't even allow selecting multiple markers except via Cmd-clicking on them one by one, which is not viable when you have hundreds of marker.

 

I'm trying to install AdobeExtendScriptToolkit_4_LS22.dmg (Mac) -- which I had to download from All the New Adobe CC 2018 Direct Download Links, Now Available! | ProDesignTools -- since it doesn't even show up in the CC Installer -- but I get this error:

The 'error summary' link just shows a link to "System Requirements" which is no help at all.

Is GetImmersiveVideoVRConfiguration actually working ?

$
0
0

Hello everyone,

 

In the latest version of the SDK for Premiere Pro CC 2018 there's this new function GetImmersiveVideoVRConfiguration but the example projects were not updated using it.

 

I am trying to use it within an exporter (first argument being the PrTimelineID timelineData that's inside the exDoExportRec *exportInfoP object given in the function exSDKExport) but I never get the information I need (I tested it by changing the sequence VR settings).

 

Is this new function really working ? If yes when and with what arguments ?


Thanks !

Setting duration of trackitem

$
0
0

Is there a possibility to set the duration of a track item? (using extendscript or maybe another scripting possibility?)

 

Thanks for an answer

Is it possible to read a UTF-16 encoded file text file using cep.fs.readFile?

$
0
0

Hi All

 

I'm on a Mac, trying to read a UTF-16 encoded xml/text file from my HTML5 extension panel in Premiere Pro CC2017.

My javascript statement, result = window.cep.fs.readFile(myFilePath);  returns without error, but result.data is empty.

If I open the target file in a text editor application (e.g. TextEdit) and resave it with UTF-8 encoding then everything works fine.

 

Is there any alternative to window.cep.fs.readFilethat I can use from my HTML5 extension panel that would allow me to successfully read/convert a UTF-16 encoded file?

 

Many thanks in advance

Andy

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


Opencv and Premier Pro

$
0
0

Hello,

 

I have designed a new process in Opencv.

 

Where do i start in creating a new plugin?

 

There is a wealth of information on using various Adobe applications, however, i cannot see much on creating a plugin from C++ source code. I'd like to get a proof of concept before signing up to and paying for a partner program.

 

Let's say we want to create a plugin that will alter a frame and apply an effect on each consecutive

 

Are there any tutorials?

 

Third-party plug-ins for Premiere Pro CC

Partner with Adobe

Technology Partners

 

Kind regards,

 

Daniel

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

Clip Marker: Different start/end time in seconds

$
0
0

Hi All,

 

I am adding a marker in clip using below code:

 

var markers = app.project.rootItem.children[0].getMarkers();
var new_marker = markers.createMarker(2.075469);
new_marker.name = "Test marker";
new_marker.comments = "Test comment";
new_marker.end = 2.075469;

 

Now I need to check that the marker already exists or not at "2.075469". I am using below code to compare the start and end seconds.

 

var markers = app.project.rootItem.children[0].getMarkers();
var start = markers.getFirstMarker().start.seconds;
var end = markers.getFirstMarker().end.seconds;
var secondsToCompare = 2.075469;
if (secondsToCompare == start && secondsToCompare == end) {     // Marker is already exists so do nothing
}
else {     // Add new marker
}

 

 

However value of both "start" and "end" is "2.08" which is not same as "2.075469".
Why premiere pro doesn't return exact value? Can anyone suggest how to achieve this?

 

Premiere Pro Version: 9.0.0
Extension Type: Panel

 


Thanks & Regards,
Meet Tank

Passing information from jsx to js.

$
0
0

Hello Community,

I have a problem with passing information from jsx to js file.

 

my jsx file:

$.extendScript = {  test : function() {    return "string";  },
}

 

my js file.

(function () {    var cs = new CSInterface();    var variable = "";    cs.evalScript('$.extendScript.test()', function(result) {       variable = result;       alert("variable in evalScript =" + variable);     });    alert("variable in outside = " + variable);    
}());

 

In evalScript function the variable get's the string from jsx function but when I want to use it outside I get empty string again.

Also I get the alert outside evalScript first in order. Why this happens?

 

 

Does anyone know why this happens and how to fix this?

Best Regards

Timeline Clip Properties inPoint and outPoint give inaccurate results when clip speed / duration not 100%

$
0
0

To recreate this issue, define a clip using the following extendScript

 

ThisClip=app.project.activeSequence.videoTracks[0].clips[0];
//i.e. the first video clip on the first video track of the active sequence.
Output={  name:ThisClip.name,  start:ThisClip.start.seconds,  end:ThisClip.end.seconds,  inPoint:ThisClip.inPoint.seconds,  outPoint:ThisClip.outPoint.seconds,  duration:ThisClip.duration.seconds
};

 

Then take a clip, called "TestClip", 0:00:00:00 and a TRT of more than 6 seconds.

For clarity's sake make the Active Timeline an even frame rate (24, 25 or 30fps, not 29.97 or 23.976)

Take a 4-second stretch of "TestClip" from source 0:00:02:00 and edit into the Active Sequence starting at 10 seconds, clip speed / duration at 100%

So you'll effectively:

     Source from 0:00:02:00 to 0:00:06:00

     in the timeline from 0:00:10:00 to 0:00:14:00

There is nothing else in this timeline.

 

If you run the above ExtendScript

 

the variable "Output" above will populate as follows, exactly as expected.

namestartendinPointoutPointduration
TestClip1014264

All is well and right with the world

 

 

Now apply a clips speed of 200% to the clip in the timeline and run the same ExtendScript above.

The results will show inaccuracies for inPoint and outPoint

namestartendinPointoutPointduration
TestClip1012

1

3

2

Consider that in the timeline the source content has not changed, only its speed.

The expected result for inPoint and outPoint should be the SAME as the Output for 100%, starting at 2, ending at 6, representing 4 seconds of source even though it accounts for only 2 seconds of TRT in the timeline.  It runs the footage faster, but uses the same source In and Source Out.  But our Output is falsely reporting we're starting source at source sec 1, ending at source sec 3 which is not true. You can verify by looking at your footage, and of course, if you match frame from the first frame of source in the timeline, indeed you pull up second 2 in the source monitor, not second 1.

 

Same issue with the clip slowed down to 50% though in this case the inPoint is at 4, ending at 12, when, again is should show from second 2 to second 6.

namestartendinPointoutPointduration
TestClip1012

4

12

8

Am I missing something or is this a bug in the ExtendScript API?

Viewing all 53010 articles
Browse latest View live


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