Skip to content

Instantly share code, notes, and snippets.

@tokejepsen
Last active November 23, 2020 15:30
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/17c43e3e83ca18685bd3ffecd378ef71 to your computer and use it in GitHub Desktop.
Save tokejepsen/17c43e3e83ca18685bd3ffecd378ef71 to your computer and use it in GitHub Desktop.
NukeStudio: Copy tags from source clip
import hiero
seq = hiero.ui.activeSequence()
selection = hiero.selection
source_track = "edit"
data = {}
for video_track in seq.videoTracks():
if video_track.name()!= source_track:
continue
for item in video_track.items():
if selection and item not in selection:
continue
data[item.name()] = item.source().tags()
target_track = "cuts"
for video_track in seq.videoTracks():
if video_track.name()!= target_track:
continue
for item in video_track.items():
if item.name() not in data.keys():
continue
for tag in data[item.name()]:
item.addTag(tag)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment