コード例 #1
0
def mooseWriteKkit(modelpath, filepath, sceneitems={}):
    """Writes  loded model under modelpath to a file in Kkit format. (inner
    helper function for moose.writeKkit)"""
    global kkitImport_, kkitImportErr_
    if not kkitImport_:
        raise ImportError("Kkit support could not be enabled becase %s." %
                          kkitImportErr_)
    return _writeKkit.mooseWriteKkit(modelpath, filepath, sceneitems)
コード例 #2
0
ファイル: moose.py プロジェクト: AdrianW15/moose
def mooseWriteKkit(modelpath, filepath,sceneitems={}):
    """Writes  loded model under modelpath to a file in Kkit format.

    keyword arguments:\n

    modelpath -- model path in moose \n
    filepath -- Path of output file.
    """
    global kkitImport_, kkitImport_err_
    if not kkitImport_:
        print( '[WARN] Could not import module to enable this function' )
        print( '\tError was %s' % kkitImport_error_ )
        return False
    return _writeKkit.mooseWriteKkit(modelpath, filepath,sceneitems)
コード例 #3
0
ファイル: moose.py プロジェクト: pgleeson/moose-core
def mooseWriteKkit(modelpath, filepath,sceneitems={}):
    """Writes  loded model under modelpath to a file in Kkit format.

    keyword arguments:\n

    modelpath -- model path in moose \n
    filepath -- Path of output file.
    """
    global kkitImport_, kkitImport_err_
    if not kkitImport_:
        print( '[WARN] Could not import module to enable this function' )
        print( '\tError was %s' % kkitImport_error_ )
        return False
    return _writeKkit.mooseWriteKkit(modelpath, filepath,sceneitems)