assetFitSize
Syntax
string assetFitSize(searchQuery, axisSize, maxScaleError)
Parameters
- searchQuery (string)
Search query to apply on list of all files in the workspace. See fileSearch / filesSearch for details about the syntax. - axisSize (string)
"x", "y", "z", "xy", "xz", "yz", "xyz" Axes for the currect scope. - maxScaleError (float)
Float value to control file selection. If it is 0 all files are allowed. If the value is > 0, only a subset of files is allowed: 0.1 means that maximum +-10% scaling is allowed.
Returns
Random asset (according to axisSize) which is in the maxScaleError range.
Description
This function returns one of the assets in the maxScaleError range, from the files specified by searchQuery, according to the specified axisSize string.
Related
- assetApproxRatio function
- assetApproxSize function
- assetBestRatio function
- fileBasename function
- fileDirectory function
- fileExtension function
- fileName function
- fileRandom function
- imageApproxRatio function
- imageBestRatio function
Examples
assetFitSize("assets/*.obj", "xz", 0.2) # result = "assets/chosenAsset.obj"
Copyright ©2008-2024 Esri R&D Center Zurich. All rights reserved.