Last active
November 23, 2020 15:30
-
-
Save tokejepsen/17c43e3e83ca18685bd3ffecd378ef71 to your computer and use it in GitHub Desktop.
NukeStudio: Copy tags from source clip
This file contains 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 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