Copy link to clipboard
Copied
outro = root.children[j].children[0];
tracks[1].insertClip(outro, videoClipLength);
outroLength = tracks[1].clips[1].end
tracks[0].clips[1].end = outroLength
i have this peace of code which is supposed to change the length of a script, it was working about 3 months ago and now i'm getting the error : Error Code# 78: Cannot set property end @ file
Can someone help me, thanks for answers
Well, i'm so sorry, i was too concentrate on my code and i didnt even verified my premiere version, now that i updated, it's working, thanks for your time
Copy link to clipboard
Copied
What's changed on your system, since this worked (3 months ago)?
Can you provide an example .prproj, your ExtendScript, and step-by-step instructions on how to replicate the issue? In what version of PPro should we see your ExtendScript behaving correctly?
Copy link to clipboard
Copied
I dont know what changed , i've no idea, my version of premiere pro is the same, i ran the script with the extension jsx launcher and with vs code and nothing happens
The issue happens when i launch the script and when i'm trying to set "tracks[0].clips[1].end" to "outroLength"
the modification appears but then the script crashes
i've tried other things like :
outroLength = tracks[1].clips[1].end.tick
tracks[0].clips[1].end.tick = outroLength
or with seconds instead of ticks, and in those case the script keeps running but modificationfs don't appear
Copy link to clipboard
Copied
I have the same questions as before:
Can you provide an example .prproj, your ExtendScript, and step-by-step instructions on how to replicate the issue? In what version of PPro should we see your ExtendScript behaving correctly?
Copy link to clipboard
Copied
Well, i'm so sorry, i was too concentrate on my code and i didnt even verified my premiere version, now that i updated, it's working, thanks for your time