FxMeshLayer ​
This module contains functions for modifing MeshLayer nodes.
Load ​
lua
FxMeshLayer = require "FxMeshLayer";Functions ​
| Function | Description |
|---|---|
| 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");