Git Product home page Git Product logo

Comments (31)

bbb999 avatar bbb999 commented on May 25, 2024 1

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.

bbb999 avatar bbb999 commented on May 25, 2024

Is keyframing enabled, for the streams you're modifying?

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

@bbb999 do you mean .setTimeVarying()? Which I suppose enables the toggle animation on Premiere.

from samples.

bbb999 avatar bbb999 commented on May 25, 2024

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.

dsbrgg avatar dsbrgg commented on May 25, 2024

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.

bbb999 avatar bbb999 commented on May 25, 2024

If getKeys() returns an array of Time objects, in what way are the keyframes not persisting?

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

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.

bbb999 avatar bbb999 commented on May 25, 2024

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:

updateUI = (k==9); // Decide how often to update PPro's UI

If you like, you can update the UI after every change...

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

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.

bbb999 avatar bbb999 commented on May 25, 2024

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.

dsbrgg avatar dsbrgg commented on May 25, 2024

Ok @bbb999! Will do as soon as I get to my computer. Thanks for the help!

from samples.

eliportell avatar eliportell commented on May 25, 2024

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.

bbb999 avatar bbb999 commented on May 25, 2024

In your case, can you successfully access the array of Time values, which constitute the keyframe stream?

from samples.

eliportell avatar eliportell commented on May 25, 2024

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.

bbb999 avatar bbb999 commented on May 25, 2024

Great!
I look forward to someone providing a script, test project, and steps we can follow to repro the behavior.

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

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.

bbb999 avatar bbb999 commented on May 25, 2024

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.

dsbrgg avatar dsbrgg commented on May 25, 2024

The file I've sent is updateKeyframes.7z which only contains the updateKeyframes.jsx file there. I think this is another thing.

from samples.

bbb999 avatar bbb999 commented on May 25, 2024

Please resend.

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

Done!

from samples.

bbb999 avatar bbb999 commented on May 25, 2024

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.

dsbrgg avatar dsbrgg commented on May 25, 2024

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.

premiere

You think there could be anything else to try?

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

Hey @bbb999 ! Were you able to take a deeper look into this possible issue?

from samples.

bbb999 avatar bbb999 commented on May 25, 2024

No; please send me your modified script, that updates the UI but for which the keyframes are not saved or displayed.

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

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

dsbrgg avatar dsbrgg commented on May 25, 2024

Guess I'll try reinstalling Premiere. Thanks a lot for the help Bruce!

from samples.

bbb999 avatar bbb999 commented on May 25, 2024

Confirming: In the video, it looks like I'm doing the same thing you are, right?

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

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.

bbb999 avatar bbb999 commented on May 25, 2024

In what version are you seeing the problem? I can test there too...

from samples.

bbb999 avatar bbb999 commented on May 25, 2024

Can we close this one?

from samples.

dsbrgg avatar dsbrgg commented on May 25, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.