Skip to content

Instantly share code, notes, and snippets.

@lukpazera
Created August 29, 2018 09:39
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 lukpazera/e2c52309082d22d2e7e86c999f8b0818 to your computer and use it in GitHub Desktop.
Save lukpazera/e2c52309082d22d2e7e86c999f8b0818 to your computer and use it in GitHub Desktop.
Script that prints out channel package for each channel of the first selected item.
import modo
item = modo.Scene().selected[0]
chanCount = item.internalItem.ChannelCount()
chanList = []
for i in xrange(chanCount - 1, -1, -1):
try:
package = item.internalItem.ChannelPackage(i)
except LookupError:
lx.out(item.internalItem.ChannelName(i))
continue
lx.out("%s: %s" % (item.internalItem.ChannelName(i), package))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment