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?
> 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.
Copy link to clipboard
Copied
...on windows10
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! 🙂
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.
Copy link to clipboard
Copied
Any news with v15 ? I don't want to go back to fcpxml 😞
Cheers!
Copy link to clipboard
Copied
No updates to share.
Copy link to clipboard
Copied
Confirmed FIXED in 22.1.2 (Build 1)