Sequence.setPlayerPosition() is not working

New Here ,
Dec 23, 2020

Copy link to clipboard

Copied

 

2.PNG캡처2.PNG

I want to use a script to move the timeline. 

 

It worked in 13 version, but after updating to 14.7 version, the setPlayerPosition () does not work.

 

Please help me.

 

Between 13.x and 14.x, the only thing that changed was PPro defaulting to New World scripting. One of the few differences between Old World and New World, is that in the New World, implicit type coersion doesn't work.

However, in the snippet above, '0' should work for ticks as well, which makes me wonder...is app.project.activeSequence null, when you execute the snippet?

 

setPlayerPosition() continues to work correctly, in PProPanel, when there is an active sequence: 

 

https://github.com/Adobe-CEP/Samples/blob/ff7e2afab20eca144dcad0bb8d893d8b275ad38e/PProPanel/jsx/PPRO/Premiere.jsx#L597

TOPICS
Error or problem, How to, SDK

Views

30

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

Sequence.setPlayerPosition() is not working

New Here ,
Dec 23, 2020

Copy link to clipboard

Copied

 

2.PNG캡처2.PNG

I want to use a script to move the timeline. 

 

It worked in 13 version, but after updating to 14.7 version, the setPlayerPosition () does not work.

 

Please help me.

 

Between 13.x and 14.x, the only thing that changed was PPro defaulting to New World scripting. One of the few differences between Old World and New World, is that in the New World, implicit type coersion doesn't work.

However, in the snippet above, '0' should work for ticks as well, which makes me wonder...is app.project.activeSequence null, when you execute the snippet?

 

setPlayerPosition() continues to work correctly, in PProPanel, when there is an active sequence: 

 

https://github.com/Adobe-CEP/Samples/blob/ff7e2afab20eca144dcad0bb8d893d8b275ad38e/PProPanel/jsx/PPRO/Premiere.jsx#L597

TOPICS
Error or problem, How to, SDK

Views

31

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
Dec 23, 2020 0
Adobe Employee ,
Dec 24, 2020

Copy link to clipboard

Copied

Between 13.x and 14.x, the only thing that changed was PPro defaulting to New World scripting. One of the few differences between Old World and New World, is that in the New World, implicit type coersion doesn't work.

However, in the snippet above, '0' should work for ticks as well, which makes me wonder...is app.project.activeSequence null, when you execute the snippet?

 

setPlayerPosition() continues to work correctly, in PProPanel, when there is an active sequence: 

 

https://github.com/Adobe-CEP/Samples/blob/ff7e2afab20eca144dcad0bb8d893d8b275ad38e/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
Reply
Loading...
Dec 24, 2020 1