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

setPlayerPosition() brings up a dialog box with the new player time. Is there a way to disable this?

Community Beginner ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

Hello! I want to move the playhead to a new timecode. This works with this function, but everytime it updates the position a dialog box pops up telling me the new time. Is there a way to turn off this dialog box? Its extremly annoying.

 

Bildschirmfoto 2022-02-21 um 18.16.52.png

 My code to update the playhead position:

function movePlayhead (tc) {
    var activeSeq = app.project.activeSequence;
    time = new Time();
    fps = (100 / activeSeq.getSettings().videoFrameRate.seconds / 100)
    time.seconds = (convertTimeCodeToSeconds(tc, fps))
    activeSeq.setPlayerPosition(time.ticks)
  }

 

TOPICS
Error or problem , SDK

Views

87

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

Community Beginner , Feb 21, 2022 Feb 21, 2022

And im an even bigger idiot. it was an "alert()" i overlooked.

Votes

Translate

Translate
Community Beginner ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

Alright, Im an idiot. 

 

For anyone that gets the same problem: Its not the "setPlayerPosition()" funtion but the "time.seconds = ..." declaration. 

Votes

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
Community Beginner ,
Feb 21, 2022 Feb 21, 2022

Copy link to clipboard

Copied

LATEST

And im an even bigger idiot. it was an "alert()" i overlooked.

Votes

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