Skip to content

FxMeshLayer โ€‹

This module contains functions for modifing MeshLayer nodes.

Load โ€‹

lua
FxMeshLayer = require "FxMeshLayer";

Functions โ€‹

FunctionDescription
Bake (NodeID)Bakes the node transformations into the mesh.

Bake (NodeID) โ€‹

This function bakes the transformations of the specified node into its mesh, and then resets all transformation values to default.

Parameters โ€‹

  • NodeID: The NodeID to identify the MeshLayer nodes to bake

Errors โ€‹

Possible errors include FX_REQUIRED_ASSET_UNAVAILABLE, FX_NODE_NOT_FOUND

Since โ€‹

Version 1.0

Example โ€‹

lua
-- bake transformations of all selected mesh layers
FxMeshLayer.Bake("/s");