FxAsset โ
This module provides functions for the four asset types: Voxel Scene, Voxel Movie, Mesh Asset and Heightmap.
Load โ
lua
FxAsset = require "FxAsset";Functions โ
| Function | Description |
|---|---|
| ExportNode (NodeID, TargetFilename, ExportProfileID) | Exports nodes of the open asset. |
ExportNode (NodeID, TargetFilename, ExportProfileID) โ
This function exports the specified nodes of the open asset using an optional export profile.
Parameters โ
NodeID: The NodeID to identify the nodes to export
TargetFilename: The filename to save the export as
ExportProfileID: The optional FileID of an Export Profile that contains the export settings you want to use. If no FileID is specified, the project profile is used.
Errors โ
Possible errors include FX_REQUIRED_FILE_UNAVAILABLE, FX_FILE_NOT_FOUND, FX_FILE_OPERATION_FAILED, FX_FILE_FORMAT_UNSUPPORTED
Since โ
Version 1.0
Example โ
lua
-- export selected nodes of active asset using export profile "qubicle"
FxAsset.ExportNode("/s", "C:\\MyFiles\\model1.qbcl", "qubicle");