Copy link to clipboard
Copied
Hi, what am I doing wrong please guide me?
I need to get the values of the keyframes, but I can't even get the presence of the keys
var project = app.project;
var projectItem = project.rootItem;
var activeSequence = project.activeSequence;
var videoTracks = activeSequence.videoTracks;
var trackOne = videoTracks[0];
var clip = trackOne.clips[0];
var components = clip.components[3];
var param = components.properties[0];
var time = app.project.activeSequence.getPlayerPosition();
param.setTimeVarying(true);
alert(param.getKeys());
It seems I misunderstood your request; if the information you need is not available via the component param streams described [above], then it is not currently available via the ExtendScript API.
Copy link to clipboard
Copied
Your snippet doesn't test for whether there actually is an active sequence...and what makes you sure that clip.components[3] is what you want?
Here's PProPanel, accessing and manipulating keyframes: https://github.com/Adobe-CEP/Samples/blob/2cd368a84e86e9f5c85ad403140a09aaadbb4fd4/PProPanel/jsx/PPR...
Copy link to clipboard
Copied
Hi Bruce,
I'm sure since I was looking for a way to do this, via displayName.
Thanks for the link. I'll try to figure it out.
The question remains open. What did I do wrong?
Copy link to clipboard
Copied
And regarding PProPanel, does it need to be installed?
I tried to do it, placed it in the required folder, changed the register. But when I try to run it from PP, nothing happens
Copy link to clipboard
Copied
It sounds like you don't have PlayerDebugMode enabled; see the PProPanel readme for configuration.
If you can't see PProPanel in PPro, I presume you're sending ExtendScript to PPro via the ExtendScript Debugger extension for VSCode, yes?
Also: No, you don't have to install PProPanel, but the code I referenced successfully accesses and manipulates keyframes, and should serve as a good starting point.
Copy link to clipboard
Copied
PlayerDebugMode enabled, I edited the registry. The panel is available in PP. But she won't start
Copy link to clipboard
Copied
By "won't start", do you mean "won't display"?
Have you restarted Windows since making that registry change?
Copy link to clipboard
Copied
Copy link to clipboard
Copied
The behavior in that video is exactly what I'd expect, if PlayerDebugMode is not set for
HKEY_CURRENT_USER\Software\Adobe\CSXS.11
Copy link to clipboard
Copied
It doesn't work the same. I changed the parameters in CSXS.11, rebooted the PC, the panel does not respond
Copy link to clipboard
Copied
This should have been done in CSXS10
Thank you. I will try to use it
Copy link to clipboard
Copied
Do I understand correctly that I don't have the ability to manipulate Path Shape keys in Premiere?
Copy link to clipboard
Copied
I'm not sure.
It looks like you were right about component[3] being the Shape vector; have you walked across those param streams, for keyframes?
Copy link to clipboard
Copied
In the screenshot above, I used PPro Panel - key manipulation
At the very beginning, yes, I went step by step looking for the parameter I needed.
I have not been able to get information about the keys
Copy link to clipboard
Copied
>I have not been able to get information about the keys
You already have each of the parameter streams (Position/Scale/Scale Width/...); from there, you can follow the example code provided in PProPanel, that accesses and modifies keyframes for those param streams.
Copy link to clipboard
Copied
I appreciate the time you took to answer me. But I need transformation parameters. I was interested in the ability to edit shape path keys
Copy link to clipboard
Copied
>I was interested in the ability to edit shape path keys
How is that different from "accessing the param streams behind the Shape parameter", as described above?
Copy link to clipboard
Copied
It's strange that you ask this.
Path is the shape of the shape, vertex, etc.
General transformation parameters, not the same
Copy link to clipboard
Copied
It seems I misunderstood your request; if the information you need is not available via the component param streams described [above], then it is not currently available via the ExtendScript API.
Copy link to clipboard
Copied
Thanks for putting me through this path and helping. It's valuable. take care of yourself