Cache imported media with Python
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I'm importing an image sequence with python and when it's imported I want to cache the media, but I can't get it to work..
This is my code:
import flame
#path to image sequence
clip_path = '/mnt/VFX_PROJECTS/path_to_my_sequence/200_010_PLATE_v001.[1001-1015].exr'
# Grabbing a folder in library
folder = flame.project.current_project.current_workspace.libraries[1].folders[0]
# importing the clip (which works fine)
imported_clip = flame.import_clips(clip_path, folder)[0]
# trying to cache the clip
imported_clip.cache_media()
And it errors out with
RuntimeError: Clip no longer exist.
Does anyone know what I'm doing wrong here?
I'm on Flame 2020.1 / linux
Thanks,
Jonas
Link copied