test(self,
filename=None,
config=None,
selection=None,
next_layer=None)
| source code
|
Run given test, and increase layer after export.
- Parameters:
filename (str ) - The name of the file to test.
config (dict ) - Configuration options that differ from their default values. If
the dictionary has the key EXPORT_VERSION then the selection is
exported, otherwise a file is imported. Optional.
selection (list of str ) - List of names of objects to select before running the test.
Optional.
next_layer (bool or NoneType ) - Whether or not to advance a layer after the test. If
None (default) then a layer is advanced only after
export.
- Returns: NifImport
or NifExport
- The import or export object.
|