Created
August 29, 2018 09:39
-
-
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.
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 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