Copy link to clipboard
Copied
So the only consistent way I've found to update an image sequence through scripting is to replace it's path with it's current path since refreshMedia() doesn't look for new or missing frames :
projectItem.changeMediaPath(projectItem.getMediaPath());
The drawback to this method, is that it resets all the interpret settings, most importantly frame rate. I tried to set the FPS in metadata (Column.Intrinsic.MediaTimebase) to the original frame rate after the update, but this hasn't worked, and from other discussions I don't think it's possible this way.
Only fix for this is to make sure "Indeterminate Media Timebase" is set to the desired frame rate in Preferences, but I'm looking for a more solid solution. Can anyone recommend a better solution?
Correct!
I've added your vote to API feature request B-100400, "Provide API for getting and setting footage interpretation, including audio channel mapping."
Copy link to clipboard
Copied
Untested theory: Perhaps you could
create a bin named 'Delete Me!'
re-import the image sequence into a new projectItem (using importFiles' handy 'import as numbered stills' flag)
bonus behavior: iterate all sequences looking for trackItems which depend on the old projectItem, and re-base them on the new projectItem
move the old projectItem (with missing frames) to 'Delete Me!'
delete the 'Delete Me!' bin
Make sense?
Copy link to clipboard
Copied
From what I can tell, re-importing the image sequence as you described will still use the default interpret settings (specifically frame rate), correct? I've achieved updating the image sequence by simply using projectItem.changeMediaPath(projectItem.getMediaPath()); but this also resets the interpret settings to whatever was the default. (i.e. User imports at 30fps,. User sets to 24fps. User refreshes image sequence duration but it also gets set back to 30fps)
Basically looking for a way to set the frame rate (and interpret settings) back to whatever the user had set for that specific image sequence after refreshing it. Thanks!
Copy link to clipboard
Copied
Bruce Bullis Seems like there isn't currently anyway to set interpret settings for footage through scripting in Premiere, yea?
Copy link to clipboard
Copied
Correct!
I've added your vote to API feature request B-100400, "Provide API for getting and setting footage interpretation, including audio channel mapping."