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)
예제 #2
0
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)
예제 #4
0
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)