Exemplo n.º 1
0
def createAsset(name, type):
    all_sets = mc.ls(sl = True)
    if all_sets:
        pmaya.createAssetSetFromSelect(name, type)
    else:
        mc.confirmDialog(title='Wrong', message='Please select some objs.')
Exemplo n.º 2
0
def createCameraAsset():
    all_sets = mc.ls(sl = True)
    if all_sets:
        pmaya.createAssetSetFromSelect("shot_camera", 'camera')
    else:
        mc.confirmDialog(title='Wrong', message='Please select some objs.')