assetsSortSize function

string assetsSortSize(filePathList, axisSize, maxScaleError)
string[] assetsSortSize(filePaths, axisSize, maxScaleError)

filePathList string String list with geometry files, separated with ; including after the last entry.

filePaths string[] String array with geometry files.

axisSize selector x, y, z, xy, xz, yz, xyz define which scope axis size is used as a reference.

maxScaleError float Controls file selection. If it is 0, all files are returned, sorted depending on their size. If the value is greater than 0, only a subset of the input files is returned. For example, 0.1 means that maximum plus or minus 10% scaling is allowed.

Returns a string list or string array with all or a subset of the files in the input filePathList or filePaths, sorted by how well they match the reference size, from best to worst. The maxScaleError parameter can be used to limit results to geometry assets that match a certain size range.

Looks at all geometry files in the input filePathList or filePaths and sorts them depending on their size relative to the size of the scope axes defined by axisSize.

Related