string assetFitSize(string searchQuery, string axisSelector, float maxScaleError)
Search query to apply on list of all files in the workspace. See fileSearch for details about the syntax.
Selector of axes for the currect scope. Supported values are: "x","y","z","xy","xz","yz","xyz"
Float value to control 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.
Random asset (according to axisSelector) which is in the maxScaleError range.
This function returns one of the assets in the maxScaleError range, from the file list specified in searchQuery, according to the specified axisSelector.
- assetApproxRatio function
- assetApproxSize function
- assetBestRatio function
- fileBasename function
- fileDirectory function
- fileExtension function
- fileName function
- fileRandom function
- imageApproxRatio function
- imageBestRatio function
assetFitSize("assets/*.obj","xz",0.2) # result = "assets/chosenAsset.obj"
Copyright ©2008-2018 Esri R&D Center Zurich. All rights reserved.