Created
February 6, 2018 14:00
-
-
Save tokejepsen/005b8736f366e52593532c95f9c71f27 to your computer and use it in GitHub Desktop.
NukeStudio all source to bin
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
sequence = hiero.ui.activeSequence() | |
bin = None | |
for item in sequence.project().clipsBin().bins(): | |
if item.name() == "Conform": | |
bin = item | |
if bin is None: | |
bin = hiero.core.Bin("Conform") | |
sequence.project().clipsBin().addItem(bin) | |
data = {} | |
for video_track in sequence.videoTracks(): | |
for item in video_track.items(): | |
bin_item = hiero.core.BinItem(item.source()) | |
bin.addItem(bin_item) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment