def lcBake_add_to_current_bake_set(bakeSetListDropdown, *args, **kwargs): ''' ''' selectedObjs = pm.ls(selection=True) numItems = bakeSetListDropdown.getNumberOfItems() if numItems > 0: currentBakeSet = bakeSetListDropdown.getValue() if currentBakeSet: bake.assignBakeSet(selectedObjs, currentBakeSet)
def lcBake_make_new_bake_set(bakeSetListDropdown, type, *args, **kwargs): ''' ''' selectedObjs = pm.ls(selection=True) newBakeSet = bake.createBakeSet(type=type) bakeSetListDropdown.addItems([newBakeSet]) numItems = bakeSetListDropdown.getNumberOfItems() bakeSetListDropdown.setSelect(numItems) bake.assignBakeSet(selectedObjs, newBakeSet)