Skip to main content
Participant
February 15, 2017
Answered

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

  • February 15, 2017
  • 2 replies
  • 597 views

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

This topic has been closed for replies.
Correct answer Bruce Bullis

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.

2 replies

jportell25
Participating Frequently
November 5, 2020

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. 

Bruce Bullis
Bruce BullisCorrect answer
Legend
February 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.