Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Sequence.setPlayerPosition() is not working

Community Beginner ,
Dec 23, 2020 Dec 23, 2020

 

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.

 

TOPICS
Error or problem , How to , SDK
634
Translate
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 , Dec 24, 2020 Dec 24, 2020

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

Translate
Adobe Employee ,
Dec 24, 2020 Dec 24, 2020
LATEST

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

Translate
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