Comments (31)
I'm not seeing the behavior you're seeing; your script successfully adds a bunch of keyframes, and they persist across closing/re-opening the project.
https://www.dropbox.com/s/3ln4l4l0svj08jb/no_repro.mp4
from samples.
Is keyframing enabled, for the streams you're modifying?
from samples.
@bbb999 do you mean .setTimeVarying()
? Which I suppose enables the toggle animation on Premiere.
from samples.
Yep!
isTimeVarying: http://ppro.aenhancers.com/9%20-%20Component%20Parameter%20object/componentparam.html?highlight=settimevary#istimevarying
setTimeVarying: http://ppro.aenhancers.com/9%20-%20Component%20Parameter%20object/componentparam.html?highlight=settimevary#settimevarying
from samples.
Yes. The script I'm running is basically the same as it is on the Samples
folder. From my logs, it's all being set perfectly, just the keyframes are not persisting.
from samples.
If getKeys() returns an array of Time objects, in what way are the keyframes not persisting?
from samples.
On the software itself, or am I wrong assuming these function should actually set the keyframes?
I supposed the addKey
would literally add a keyframe on the software.
from samples.
PPro must be adding the keyframes, otherwise you wouldn't get back an array of Time objects.
Are you saying instead that PPro's UI doesn't update?
Note that the sample snippet from which you're working, only updates the UI occasionally:
Samples/PProPanel/jsx/PPRO/Premiere.jsx
Line 1347 in ed4d465
If you like, you can update the UI after every change...
from samples.
Sorry Bruce, that's exactly what I meant (the UI).
Yeah, I've got that part and basically the modification I made was on every second of the clip (180 seconds), I've added a keyframe with "random" value and updated on every second and like I've mentioned, in the end of the script I do see the last result but, the keyframes on the UI are not there, and scrolling through the clip show that only the last result from the script remained (not the keyframe though, only the actual value for the clip property).
from samples.
That's...odd.
Send me your script, the ("Before") test project you're using, and step-by-step instructions on how we can reproduce the behavior you're seeing; b b b at adobe dot com.
from samples.
Ok @bbb999! Will do as soon as I get to my computer. Thanks for the help!
from samples.
I have noticed this as well. I will set keyframes, those keyframes will return properly when I ask to getKeys(), but the UI will not update (even though I told it to), and the animation will not be applied to the effect.
Same issue discussed here
It is inconsistent to reproduce for me. Sometimes the keyframes show up, other times they do not.
from samples.
In your case, can you successfully access the array of Time values, which constitute the keyframe stream?
from samples.
Yes. I addKey(), then setValueAtKey() with it forcing the UI to update, and then run getKeys(), and everything returns properly, but the UI does not update in the effects controls panel.
Sound like the same issue exactly that @dsbrgg is having.
from samples.
Great!
I look forward to someone providing a script, test project, and steps we can follow to repro the behavior.
from samples.
Hey @bbb999! I've sent an email with the script that I'm using. I think the test project might be "useless" because as I said, I'm just trying to play around with ExtendScript so, I literally just had an image on a video track and was trying to set Scale
keyframes on each second (3 minutes - 180 seconds) that I left on the clip.
Again, the script seems to run but, keyframes do not persist on the UI, just the last value that was set on the for loop (don't think this is a closure problem as the UI itself is not setting the last keyframe either).
from samples.
Extensions.7z contains 5 Adobe extensions, and one third party: "com.my.test".
The only ExtendScript (.jsx) file in com.my.test refers to your D:\WALLPAPERS directory, and doesn't seem keyframe-related. ;)
More likely locations:
C:\Program Files (x86)\Common Files\Adobe\CEP\extensions
C:\Program Files\Common Files\Adobe\CEP\extensions
from samples.
The file I've sent is updateKeyframes.7z
which only contains the updateKeyframes.jsx
file there. I think this is another thing.
from samples.
Please resend.
from samples.
Done!
from samples.
I think the problem is this line:
var updateUI = (q % 10 === 0);
That will only ever be true when q is 0; otherwise, it'll be false. To see, try this in ESTK, with the JavaScript Console window open (to see the output):
for (var a = 0; a < 10; a++){
var updateUI = (a % 10 === 0);
$.writeln(updateUI);
}
from samples.
Ok, I've modified it. Basically updating the UI in every iteration (180 then). Again, the UI updates but the keyframes are not saved there and not dislayed.
You think there could be anything else to try?
from samples.
Hey @bbb999 ! Were you able to take a deeper look into this possible issue?
from samples.
No; please send me your modified script, that updates the UI but for which the keyframes are not saved or displayed.
from samples.
@bbb999 I've sent you the update script again yesterday, let me know if you had a chance to take a look at it.
from samples.
Guess I'll try reinstalling Premiere. Thanks a lot for the help Bruce!
from samples.
Confirming: In the video, it looks like I'm doing the same thing you are, right?
from samples.
Yes, I mean, it does look like the same thing. The only difference is the Premiere version but I assume the API wouldn't change or else, I would not even be able to link on the ExtendScript Tool.
from samples.
In what version are you seeing the problem? I can test there too...
from samples.
Can we close this one?
from samples.
hey @bbb999 !
wow, my bad for disappearing... My Premiere is the 2017 version, if you want the semver versioning for it or something like that I'll need to come back later, when I have my PC available.
from samples.
Related Issues (20)
- How to change transition time with ExtendScript on Premiere
- How to get preset's icons/thumbnail images?
- PPro calls to qe.project.newSequence() cause "serious error" crash HOT 3
- link in README.md shows 404 error
- Is there a way to end-to-end test the CEP w/ Typescript?
- CEP_HTML_Test_Extension-10.0 issue with AnimateCC (in manifest)
- XMP Sample Not working in CC2021 v16.2 HOT 5
- time variable in exportCurrentFrameAsPNG is overwritten HOT 2
- end - zeropoint produces a negative number
- Markers.end not working in 2021? HOT 1
- AdobeCEP > Samples-master > PProPanel errors in Premiere Pro 15.x - server side issue?
- RCE vulnerability in RSSReader sample
- Is it possible to change existing build in panels in Premiere Pro? HOT 1
- Why is the HTML panel not displayed in Premiere Pro 15.4 HOT 2
- Using TrackItem.move to move an item through another disappears
- How to use JSON in PPRO/Premiere.jsx? ReferenceError: JSON is undefined HOT 1
- performCutDetectionOnSelection HOT 1
- Modern Typescript workflow. HOT 3
- No panel appearing on Premiere 2021 M2 mac
- ExportAAF example is wrong
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from samples.