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

Setting Source Playhead Position without app.enableQE?

Enthusiast ,
Apr 28, 2020 Apr 28, 2020

Copy link to clipboard

Copied

Is this possible?


From this link I was able to cue the source monitor via QE

 

But considering the endless admonitions to avoid QE when possible, I've been hunting the ReadTheDocs API  for a more approved version.  So far, no luck.

 

There's a Program side version: sequence.setPlayerPosition()

There's a source.getPosition(), which I can't seem to get working.

And there's a sourceMonitor object which doesn't seem to have anything other than QE.

 

I ended up on a wild goose chase testing
   sourceMonitor.getPosition()
   sourceMonitor.getPlayerPosition()
   sourceMonitor.setPosition()
   sourceMonitor.setPlayerPosition()
As well as all the above methods but using a projectItem object (i.e. projectItem.getPosition() etc.)

I'm assuming source & app.sourceMonitor are the same thing, correct?

 

For now sticking with the much-maliged QE 😞

TOPICS
SDK

Views

1.1K

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 , Apr 29, 2020 Apr 29, 2020

Is this possible?

Not today.

Votes

Translate

Translate
Contributor ,
Apr 29, 2020 Apr 29, 2020

Copy link to clipboard

Copied

To avoid wild chase you can get all available methods using Property Exlporer extension.

There are no more functions in sourceMonitor object besides the ones you found in ReadTheDocs.

I guess the only way to make it work without QE is to have a mix of play & sleep:

 

 

var video = app.project.rootItem.children[0];
var speed = 1; // could be negative value as well
app.sourceMonitor.openProjectItem(video);
app.sourceMonitor.play(speed); // start play
$.sleep(1000); // to control how long to play
app.sourceMonitor.play(); // to stop

// then use app.sourceMonitor.getPosition() to find out if you scrubbed to a right place

 

 

 

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
Enthusiast ,
Apr 30, 2020 Apr 30, 2020

Copy link to clipboard

Copied

Thanks for the Property Editor.  Cool extension.

Love the scrub back-n-forth approach -- You could re-create the experience of tape to tape linear editing.

 

The QE approach is working great as a solution.

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
Contributor ,
May 01, 2020 May 01, 2020

Copy link to clipboard

Copied

LATEST

That approach would be useful for creating some "vintage" extensions 🙂

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
Adobe Employee ,
Apr 29, 2020 Apr 29, 2020

Copy link to clipboard

Copied

Is this possible?

Not today.

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