Syntax
- string assetsSortSize(fileList, axisSelectorSize, maxScaleError)
Parameters
- fileList—stringString list with geometry files, separated with ";" (also after the last entry).
- axisSelectorSize—selstr{ x | y | z | xy | xz | yz | xyz }— selector which defines which scope axes size is used as a reference.
- maxScaleError—floatControls file selection. If it is 0 all input files are returned, sorted depending on their size. If the value is > 0, only a subset of the input files is returned: 0.1 means that maximum +-10% scaling is allowed.
Returns
A string list with all or a subset of the files in the input fileList, sorted in order how good they match the reference size (first is best, last is worst). The maxScaleError parameter can be used to only take the geometry assets matching a certain size range.
Description
The assetsSortSize function looks at all geometry files in the input fileList and sorts them depending on their size relative to their size of the scope axes defined by maxScaleError.