Mesh Asset โ
The Mesh Asset is one of the four asset types that can be used in a Foxel project. Mesh assets are primarily created during the import of mesh files, such as FBX or OBJ.
Mesh assets contain a node tree for easy scene management, and a timeline for keyframe-based animation.
Mesh assets can be loaded into Voxel Scenes via VoxelSceneReference nodes which convert the mesh data into voxel data.
Properties โ
| Name | Type | Default | Access | Description |
|---|---|---|---|---|
category | 1i | 0 | ๐ฉ๐ฅ | Category |
copyrightInfoUrl | 1s | ๐ฉ๐ฅ | Metadata, link to copyright info | |
copyrightNotice | 1s | ๐ฉ๐ฅ | Metadata, copyright notice | |
copyrightStatus | 1i | 0 | ๐ฉ๐ฅ | Metadata, CopyrightStatus |
creator | 1s | ๐ฉ๐ฅ | Metadata, creator of asset | |
description | 1s | ๐ฉ๐ฅ | Metadata, description | |
fps | 1f | 24.0 | ๐ฉ๐ฅ | Animation frames per second |
guid | 1s | ๐ฉโ | Globally unique identifier | |
headline | 1s | ๐ฉ๐ฅ | Metadata, headline | |
keywords | 1s | ๐ฉ๐ฅ | Metadata, keyword | |
scanBoxFrame | 1i | 1 | ๐ฉ๐ฅ | Default Scan Box frame |
scanBoxOrigin | 3i | (0,ย 0,ย 0) | ๐ฉ๐ฅ | Default Scan Box origin |
scanBoxPosition | 3i | (-128,ย -128,ย -128) | ๐ฉ๐ฅ | Default Scan Box position |
scanBoxSize | 3i | (256,ย 256,ย 256) | ๐ฉ๐ฅ | Default Scan Box size |
title | 1s | ๐ฉ๐ฅ | Metadata, title | |
unitScale | 1f | 1.0 | ๐ฉ๐ฅ | Unit scale |
Details
Type1b: boolean1c: color (integer)1i: integer1f: float1s: string2b: 2-component boolean vector2i: 2-component integer vector2f: 2-component float vector3b: 3-component boolean vector3i: 3-component integer vector3f: 3-component float vector
Access
๐ฉ : Property value can be read with FxFile.Get
๐ฅ : Property value can be changed with FxFile.Set
โ : Property value is read-only and can't be changed
Create โ
To create a new mesh asset use FxFile.Create with FileType 114.
assetID = FxFile.Create(114);
assetID = FxFile.Rename(114, assetID, "MyAsset"); -- rename new asset
FxFile.Open(114, assetID); -- open new assetFiles โ
All asset files of a project are stored in the project folder Projects\PROJECTNAME\Assets\ with the file extension .fxl.
Supported Nodes โ
MeshLayer, MeshBox, MeshCone, MeshCylinder, MeshSphere, MeshTorus, Group3D, ScanBox, Locator