Skip to content

Instantly share code, notes, and snippets.

@tokejepsen
Created February 6, 2018 14:00
Show Gist options
  • Save tokejepsen/005b8736f366e52593532c95f9c71f27 to your computer and use it in GitHub Desktop.
Save tokejepsen/005b8736f366e52593532c95f9c71f27 to your computer and use it in GitHub Desktop.
NukeStudio all source to bin
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