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

Extendscript: override or insert project item as individual clips

Participant ,
Feb 12, 2024 Feb 12, 2024

Copy link to clipboard

Copied

Hi guys I am tried to understand is there a way to paste the sequnece item into timeline via extenscript the
way we use 'insert or overwrite sequneces as nests or indivudual clips'? 

Screenshot 2024-02-13 at 03.46.11.png
so with this button sequence is inserted as clips

Screenshot 2024-02-13 at 03.54.53.png


usuall inserClip doesn't work, 

QE doesn't work either, however there is are some flags, that I don't really know are about vTrack.overwrite(qePi, '00:00:05:00', false, false, false, false)

my main goal is just to avoid copy-pasting effects and from the clips inside the sequences. I need to break the sequence into the clips


Thank you, 
Evgenii

 

TOPICS
SDK

Views

163

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 ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

I think you'll see that behavior change, depending on the state of the "insert and overwrite sequences as nests or individual clips" setting, here:

that_one.png

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
Participant ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

//without QE
var seq = app.project.activeSequence;
var time = new Time();
var itemToInsert = app.project.rootItem.children[11]
time.seconds = 0;
seq.videoTracks[0].insertClip(itemToInsert, time, 0, 0);
//seq.videoTracks[0].insertClip(app.project.sequences[0], time, 0, 0); //cause ppro crash

//with QE
app.enableQE();
var vTrack = qe.project.getActiveSequence().getVideoTrackAt(0);
var qePi = qe.project.getSequenceItemAt(2);
vTrack.insert(qePi, "00:00:10:00", false, false, false, false); //have no ideas what are the flags for
vTrack.insert(qePi, "00:00:20:00", true, false, false, false);
vTrack.insert(qePi, "00:00:30:00", true, true, false, false);
vTrack.insert(qePi, "00:00:40:00", true, true, true, false);
vTrack.insert(qePi, "00:00:50:00", true, true, true, true);

None of the methods don't work , with or without the option. Inserting the sequence obj causing the ppro crash

Screenshot 2024-02-14 at 01.01.48.png

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 ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

Not sure what's at app.project.rootItem.children[11], but PProPanel's example code successfully inserts new trackItems.

[The commented-out line will always fail, because you're passing a Sequence object, not a projectItem.]


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
Participant ,
Feb 13, 2024 Feb 13, 2024

Copy link to clipboard

Copied

app.project.rootItem.children[11] is just a projectItem (seqeuence), I am not trying to insert just individual clip. I am trying to insert mimicing the "insert and overwrite sequences as nests or individual clips", so if I insert projectItem which is a sequence, it inserts all clips inside the sequence

 

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 ,
Feb 14, 2024 Feb 14, 2024

Copy link to clipboard

Copied

Right; that behavior is controlled by the setting referenced [above].

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
Participant ,
Feb 14, 2024 Feb 14, 2024

Copy link to clipboard

Copied

Please check this quick  video  I made about the issue, am I missing something? For me it doesn't work 

Thank you,
Evgenii

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 ,
Feb 15, 2024 Feb 15, 2024

Copy link to clipboard

Copied

LATEST

Interesting; thanks for the video.

 

 

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