Skip to content

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

NameTypeDefaultAccessDescription
category1i0🟩🟥Category
copyrightInfoUrl1s🟩🟥Metadata, link to copyright info
copyrightNotice1s🟩🟥Metadata, copyright notice
copyrightStatus1i0🟩🟥Metadata, CopyrightStatus
creator1s🟩🟥Metadata, creator of asset
description1s🟩🟥Metadata, description
fps1f24.0🟩🟥Animation frames per second
guid1s🟩❌Globally unique identifier
headline1s🟩🟥Metadata, headline
keywords1s🟩🟥Metadata, keyword
scanBoxFrame1i1🟩🟥Default Scan Box frame
scanBoxOrigin3i(0, 0, 0)🟩🟥Default Scan Box origin
scanBoxPosition3i(-128, -128, -128)🟩🟥Default Scan Box position
scanBoxSize3i(256, 256, 256)🟩🟥Default Scan Box size
title1s🟩🟥Metadata, title
unitScale1f1.0🟩🟥Unit scale
Details

Type
1b: boolean
1c: color (integer)
1i: integer
1f: float
1s: string
2b: 2-component boolean vector
2i: 2-component integer vector
2f: 2-component float vector
3b: 3-component boolean vector
3i: 3-component integer vector
3f: 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.

lua
assetID = FxFile.Create(114);
assetID = FxFile.Rename(114, assetID, "MyAsset"); -- rename new asset
FxFile.Open(114, assetID); -- open new asset

Files

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