コード例 #1
0
def saveGeo():
        # this is not a model asset. don't save objs
        if not isModelAsset():
                return True
        
        print 'we have a model'
        # if we can export the objs, export the objs to the asset folder
        if geo.generateGeometry():
                print 'generateGeometry done'
                geo.installGeometry()
                
                return True # copy was successful
        else:
                return False
コード例 #2
0
def saveGeo():
    print 'saving geo...'
    # this is not a model asset. don't save objs
    if not isModelAsset():
        return True

    print 'we have a model'
    # if we can export the objs, export the objs to the asset folder
    if geo.generateGeometry():
        print 'generateGeometry done'
        geo.installGeometry()

        return True  # copy was successful
    else:
        return False
コード例 #3
0
def saveGeo():
    print 'saving geo to .obj, .bjson'
    # this is not a model asset, don't save objs!
    if not checkAssetType('model'):
        return True
    #print 'we have a model'
    # if we can export the objs, export the objs to the asset folder
    if geo.generateGeometry():
        print 'geo was exported to files.'
        geo.installGeometry()

        return True  # copy was successful
    else:
        print 'geo was NOT exported to files.'
        return False
コード例 #4
0
ファイル: maya_checkin.py プロジェクト: seashby10/papa-tools
def saveGeo():
    print 'saving geo to .obj, .bjson'
    # this is not a model asset, don't save objs!
    if not checkAssetType('model'):
        return True
    #print 'we have a model'
    # if we can export the objs, export the objs to the asset folder
    if geo.generateGeometry():
        print 'geo was exported to files.'
        geo.installGeometry()
            
        return True # copy was successful
    else:
        print 'geo was NOT exported to files.'
        return False