Skip to main content
Known Participant
March 19, 2023
Answered

cep remove Component with qeSequence.getVideoTrackAt(0).getItemAt(0).getComponentAt(1);

  • March 19, 2023
  • 2 replies
  • 535 views

My hero,i want to remove one Component

 

app.enableQE();
var qeSequence = qe.project.getActiveSequence(0);
qeSequence.getVideoTrackAt(0).getItemAt(0).getComponentAt(1);

 

use QEComponent.remove().But i found that getComponentAt(1);This index of getComponentAt(index) only 0 and 1,it can not be 2,3,4 or more.How can i solve this problem?

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

The QE DOM is unsupported, and unrecommended. In the regular DOM, trackItem.remove() would be the right approach.

2 replies

Bruce Bullis
Community Manager
Bruce BullisCommunity ManagerCorrect answer
Community Manager
March 19, 2023

The QE DOM is unsupported, and unrecommended. In the regular DOM, trackItem.remove() would be the right approach.

干5FFBAuthor
Known Participant
March 19, 2023

OH,i found it is not the indexOf getComponentAt(index),but the getItemAt(0),when i make this getItemAt(1) ,it will fail.