Created
May 16, 2021 13:38
-
-
Save tokejepsen/3072156e028371ef472cd2ea163a7fa4 to your computer and use it in GitHub Desktop.
NukeStudio: Copy media to destination
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import shutil | |
import hiero | |
destination = r"C:\Users\tokejepsen\Desktop\movs" | |
for item in hiero.selection: | |
if isinstance(item, hiero.core.EffectTrackItem): | |
continue | |
source = item.source().mediaSource().fileinfos()[0].filename() | |
basename = os.path.basename(source) | |
shutil.copyfile(source, os.path.join(destination, basename)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment