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");