Skip to content

Instantly share code, notes, and snippets.

@tokejepsen
Created May 16, 2021 13:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tokejepsen/3072156e028371ef472cd2ea163a7fa4 to your computer and use it in GitHub Desktop.
Save tokejepsen/3072156e028371ef472cd2ea163a7fa4 to your computer and use it in GitHub Desktop.
NukeStudio: Copy media to destination
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