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

Cannot assign values to trackItem.start or end

Community Beginner ,
Mar 09, 2020 Mar 09, 2020

Copy link to clipboard

Copied

How do you change the value of "trackItem.end"? It worked before; now it doesn't.

 

var seq = app.project.activeSequence;
var vClip = seq.videoTracks[0].clips[0];
var aClip = seq.audioTracks[0].clips[0];

 

// Method 1: No error, but the value assignment doesn't work. No changes are made.

vClip.end.seconds = aClip.end.seconds; 

 

// Method 2: Error. Cannot set property end. Changes are made, but the program quits on me after that.

vClip.end = aClip.end.seconds;

 

My script worked with Method 2 above a few months ago. Now it doesn't. Maybe there have been some changes to Premiere Pro or ExtendScript?

TOPICS
SDK

Views

3.0K

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 2 Correct answers

Adobe Employee , Mar 11, 2020 Mar 11, 2020

> Now... I've disabled the new world feature in PPro 14, and Method 2 starts working again...

Yes, Old World's charitable type coercion ("What's this thing? I'll just pretend it's a String") is gone, and won't be coming back. 

Votes

Translate

Translate
Adobe Employee , Jun 03, 2020 Jun 03, 2020
Update: Andrew was on to something. In PPro 14.x, the change works, but returns a scripting error. We're tracking the issue as DVAPR-4224243: "Changing the start and end time of a trackItem returns an error (but seems to work)" We'll keep you informed of our progress.

Votes

Translate

Translate
Participant ,
Apr 09, 2021 Apr 09, 2021

Copy link to clipboard

Copied

...on windows10

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 ,
Apr 10, 2021 Apr 10, 2021

Copy link to clipboard

Copied

There are some troubles with both classes TrackItem and classes QETrackItems. For example, in QE it's impossible to paint trackitems - AP crush immediately :-)Try to use unofficial QE classes and methods for your task. Sorry, Bruce! 🙂

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 09, 2021 Apr 09, 2021

Copy link to clipboard

Copied

As you've noticed, no fix yet.

Based on our testing, if your panel were to catch the thrown error after changing the start/end time, the change would work. 

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
New Here ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

Any news with v15 ? I don't want to go back to fcpxml 😞
Cheers!

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 ,
Jun 04, 2021 Jun 04, 2021

Copy link to clipboard

Copied

No updates to share.

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
New Here ,
Feb 05, 2022 Feb 05, 2022

Copy link to clipboard

Copied

LATEST

Confirmed FIXED in 22.1.2 (Build 1)

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