Copy link to clipboard
Copied
Hello everybody,
Can you say me if Premiere SDK supports addKey on pictures ?
When I attempt to add addKey (on opacity) on movies, it works, but if I try on pictures (.jpg, .png...), it doesn't work : I used this script (https://forums.adobe.com/thread/2471227)
I don't understand, anyone can help me ? 2 weeks that I'm looking for, I'm going crazy. Thank you.
var proj = app.project;
var seq = proj.activeSequence;
var time = seq.getPlayerPosition(); // CTI = Current Time Indicator.
var time2 = seq.getPlayerPosition();
var time3 = seq.getPlayerPosition();
time2.seconds += 1;
time3.seconds += 2;
var videoTracks = seq.videoTracks;
var track = videoTracks[0];
for (var j = 0; j < track.clips.numItems; j++) {
var clip = track.clips
for (var k = 0; k < clip.components.numItems; k++) {
var component = clip.components
// Trajectory
for (var l = 0; l < component.properties.numItems; l++) {
var property = component.properties
if (property.displayName == "Scale") {
// Scale
if (!property.isTimeVarying()) {
property.setTimeVarying(true);
}
property.addKey(time);
property.addKey(time2);
property.addKey(time3);
var k = property.getKeys();
if (property.areKeyframesSupported() == true) {
var result = property.getValueAtKey(time);
property.setValueAtKey(time, 100, true);
property.setValueAtKey(time2, 200, true);
property.setValueAtKey(time3, 300, true);
}
}
}
}
}
You're right! I was able to reproduce the behavior.
We're tracking this as DVAPR-4217831: "setValueAtKey() fails to work correctly, when applied to a still image; same code works fine when target is video".
I'll keep you informed of our progress.
Copy link to clipboard
Copied
At first glance, it appears you're trying to set the value of opacity to 100, 200, than 300.
I think 100 is the maximum opacity value; you could check the opacity values of a still set to fully transparent, and one set to fully opaque. I'll have a look, time permitting.
Copy link to clipboard
Copied
In fact, I loop and I only select the property "Scale" and not opacity.
The value is changed but no keyframes are created, despite the 3 addKey statements.
Copy link to clipboard
Copied
You're right! I was able to reproduce the behavior.
We're tracking this as DVAPR-4217831: "setValueAtKey() fails to work correctly, when applied to a still image; same code works fine when target is video".
I'll keep you informed of our progress.
Copy link to clipboard
Copied
Hi,
I'm having the same problem.
Is there a information?
Copy link to clipboard
Copied
Hi.
I've been waiting for a long time.
Won't there be any information?
Copy link to clipboard
Copied
Is there now a solution for this problem?
Copy link to clipboard
Copied
I was working with keyframes on videos and all was good (on Windows - did not try on Mac yet).
Now I'm trying this with images => nothing works.
Still now, using PPro 2023... (23.1.0 b86)
How is the status of DVAPR-4217831? We cannot see it, I assume it was rejected or forgotten in the ticket tomb 😉
It also does not work with PPro Beta (23.3.0 b17)
Just updated PPro and the Beta to the latest versions.
It would be very nice if someone could post the status of DVAPR-4217831 🙂
Tüdelü,
Guntram
Copy link to clipboard
Copied
It seems to be working with gifs!
Copy link to clipboard
Copied
can anyone solve it?
Copy link to clipboard
Copied
Also facing the same issue.
Please let me know if there are any updates. Thanks!
Copy link to clipboard
Copied
Nevermind, solved it after watching this tutorial: https://youtu.be/cmwzXL6pRfw
Copy link to clipboard
Copied
This only explains how to set keyframes to videos, not how to set them for images...