getKeys Shape Path

Explorer ,
Feb 06, 2022 Feb 06, 2022

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());

TOPICS
How to , SDK

Views

161

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Adobe Employee , Feb 09, 2022 Feb 09, 2022
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.

Likes

Translate

Translate
Adobe Employee ,
Feb 07, 2022 Feb 07, 2022

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 08, 2022 Feb 08, 2022

Copy link to clipboard

Copied

Hi Bruce,
I'm sure since I was looking for a way to do this, via displayName.

Harchenko_0-1644307261707.png

Thanks for the link. I'll try to figure it out.

The question remains open. What did I do wrong?

 



Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 08, 2022 Feb 08, 2022

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 08, 2022 Feb 08, 2022

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 08, 2022 Feb 08, 2022

Copy link to clipboard

Copied

PlayerDebugMode enabled, I edited the registry. The panel is available in PP. But she won't start

Harchenko_0-1644333859543.png

Harchenko_1-1644333955441.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 08, 2022 Feb 08, 2022

Copy link to clipboard

Copied

By "won't start", do you mean "won't display"?
Have you restarted Windows since making that registry change? 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 08, 2022 Feb 08, 2022

Copy link to clipboard

Copied

I mean nothing happens when I try to launch the panel
Yes, I've overloaded

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 08, 2022 Feb 08, 2022

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


Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 08, 2022 Feb 08, 2022

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

Harchenko_0-1644336387469.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 08, 2022 Feb 08, 2022

Copy link to clipboard

Copied

This should have been done in CSXS10

Thank you. I will try to use it

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 08, 2022 Feb 08, 2022

Copy link to clipboard

Copied

Do I understand correctly that I don't have the ability to manipulate Path Shape keys in Premiere?

Harchenko_0-1644339550336.png

 

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 08, 2022 Feb 08, 2022

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?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 08, 2022 Feb 08, 2022

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 09, 2022 Feb 09, 2022

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 09, 2022 Feb 09, 2022

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 09, 2022 Feb 09, 2022

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?

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 09, 2022 Feb 09, 2022

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

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Feb 09, 2022 Feb 09, 2022

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.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Feb 09, 2022 Feb 09, 2022

Copy link to clipboard

Copied

LATEST

Thanks for putting me through this path and helping. It's valuable. take care of yourself

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines