Skip to main content
Inspiring
January 9, 2025
Answered

ExtendedScript: replace image sequence

  • January 9, 2025
  • 1 reply
  • 175 views

I used `importFiles` with secondary argument set to 1 to import image sequence.

Now I would like to change it to different image sequence, is it possible with `changeMediaPath`?

Tried to pass new list of paths, doesn't work, wrong argument type, tried to pass in path with some frame placeholder (`####`, `[1001-1002]`), didn't work, failed with 'Importer failed with generic error'.

If I pass only single new file path, only first frame gets updated.

Is it possible to use only `changeMediaPath`? (If not and new bin > new import > re-link > delete old bin, could someone point me how to find where old image sequence/bin was used and replace it with new ids)
Thanks for reply

Correct answer bbb_999

Now I would like to change it to different image sequence, is it possible with `changeMediaPath`?

No; you'd need to importFiles() a new image sequence. For any trackItems that reference the older image sequence, you can change the projectItem to which those trackItems refer.

1 reply

bbb_999
Community Manager
bbb_999Community ManagerCorrect answer
Community Manager
January 9, 2025

Now I would like to change it to different image sequence, is it possible with `changeMediaPath`?

No; you'd need to importFiles() a new image sequence. For any trackItems that reference the older image sequence, you can change the projectItem to which those trackItems refer.