Skip to content

Instantly share code, notes, and snippets.

@YairMorr
Last active July 10, 2019 11:10
def initUI(self):
# Creating a window and other UI elements
# A loop that creates 4 optionMenu items
for i in range(0, 3):
self.menus[i] = cmds.optionMenu(l="Menu"+str(i), cc=lambda x: self.indexFolders(x, i))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment