Syntax
- string assetBestSize(searchQuery, axisSize)
Parameters
- searchQuery—stringSearch 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 current scope.
Returns
Asset with the best size fit (according to axisSize).
Description
The assetBestSize function returns the asset with the best fitting size, from the file list specified in searchQuery, according to the specified axisSize string.
Related
Examples
Inserting assets based on their (physical) size
The goal is to insert assets from a pool, depending on their (physical) size. The pool of assets is seen in the following image. Colors are (only) used to visually emphasize the size ratio. |
Note:
Note that small parts get blue assets while large parts get red assets.
|