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

Is there a general purpose 'refresh UI' function available ?

New Here ,
Feb 15, 2017 Feb 15, 2017

Copy link to clipboard

Copied

Hey All (but especially Bruce, if you've got your ears on)

I'm using the clipItem.setSelected(true/false, true) method to programmatically set selection and deselection on multiple clips in the active sequence.

Unfortunately what I'm finding is that sometimes Premiere fails to update the UI as I was hoping/expected...it's as if it gets out of step.  Subsequent selection/deselection calls appear to select/deselect the previously targeted clip.  Manually, manipulating the timeline window after the fact (adjusting the window size, moving the audio video track separator, or adjusting track height or similar) seems to refresh the UI such that the items in the sequence that had previously failed to (appear to) become selected then do have the selection status that they should.

Weirdness notwithstanding, is there any discrete method by which I can simply ask the sequence to update its UI ... after I've finished selection processing .. so that any unexpected selection issues might be corrected?

Many thanks in advance.

Andy

TOPICS
SDK

Views

438

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 16, 2017 Feb 16, 2017

If you can reproduce the behavior you've described, that's a bug. [There's no additional "refresh everything" call.]

Please send me the .jsx file you're using, and step-by-step instructions to repro the behavior.

Votes

Translate

Translate
Adobe Employee ,
Feb 16, 2017 Feb 16, 2017

Copy link to clipboard

Copied

If you can reproduce the behavior you've described, that's a bug. [There's no additional "refresh everything" call.]

Please send me the .jsx file you're using, and step-by-step instructions to repro the behavior.

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
Explorer ,
Nov 05, 2020 Nov 05, 2020

Copy link to clipboard

Copied

LATEST

Following up on this. I am also looking for a way to force a UI refresh during a script. In my scenario I am trying to extend a clips length to the end of the sequence duration. JSX follows:

 

var templateSequence = findSequence("Example Sequence");
var seqEnd = templateSequence.end;
templateSequence.videoTracks[0].overwriteClip(exampleProjectItem, 0);

templateSequence.videoTracks[0].clips[0].end = seqEnd;

 

When I run this, initially the item looks like it has not been extended past its default length. However, when I click around, or scrub the preview monitor the preview looks correct, as expected. 

 

Functionally everything is workign properly with the API.... its just the UI that doesn't udpate and cuases confusion for the user. 

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