This page has been translated automatically.
UnigineScript
The Language
Core Library
Engine Library
Node-Related Classes
GUI-Related Classes
Plugins Library
High-Level Systems
Samples
C++ API
API Reference
Integration Samples
Usage Examples
C++ Plugins
Content Creation
Materials
Unigine Material Library
Tutorials
Внимание! Эта версия документация УСТАРЕЛА, поскольку относится к более ранней версии SDK! Пожалуйста, переключитесь на самую актуальную документацию для последней версии SDK.
Внимание! Эта версия документации описывает устаревшую версию SDK, которая больше не поддерживается! Пожалуйста, обновитесь до последней версии SDK.

Node Export Plugin

Node Export is a UnigineEditor plugin designed for exporting assets from one project into another. The assets include:

  • Nodes
  • Meshes
  • Textures
  • Materials
  • Properties
  • Terrains

The plugin provides the following functionality:

  • Automatic correction of paths in the exported *.node, *.mat and *.prop files that refer to the source project.
  • Adding the exported materials and properties to the required materials' libraries without deleting the materials and properties that already exist.
  • Copying all dependencies of each node in the selection(e.g. all of the nodes of the selected WorldCluster will be exported with the meshes, materials, textures, etc.).

Loading Plugin

To load the Node Export plugin, open the Tools -> Plugins tab in the UnigineEditor, press the Core button and choose tools/node_export.cpp in the list.

When the plugin is loaded, the icon will appear at the left side of the application window under the Interface panel.

Interface of the Node Export Plugin
From Contains a path to a source project, from which the assets will be copied. Includes the following field:
Project Path to the source project folder relative to the data folder.
To Contains paths to a target project, into which the assets will be copied. Includes the following fields:
DataAbsolute path to the data folder of the target project.
ProjectPath to the target project folder relative to the data folder.
Custom paths Switches export modes:
  • If it is unchecked, the folder structure of the source project will be used.
  • If it is checked, the folder structure of the target project must be specified in the Paths group box (see below).
Paths Paths to the target project assets of each category.
NodesPath to a folder with nodes relative to the target project data folder.
MeshesPath to a folder with meshes relative to the target project data folder.
TexturesPath to a folder with textures relative to the target project data folder.
Notice
The uncompressed folder will be created as a sub folder.
MaterialsPath to a folder with materials' libraries relative to the target project data folder.
PropertiesPath to a folder with properties' libraries relative to the target project data folder.
TerrainsPath to a folder with terrain data relative to the target project data folder.
Notice
The materials folder will be created for the terrain materials as a sub folder.

Exporting Assets

Using the Source Project Structure

In this mode, the target project should have the same folder structure as the source one. This mode should be used to export the large number of assets with lots of dependencies.

Notice
If the structure of the target project differs from the target project structure, the assets will be exported incorrectly.

  1. In the Nodes panel of the UnigineEditor, select all of the nodes that need to be exported
  2. In the From group box, specify a relative path to the project, from which the assets should be exported:

  3. In the Data edit line of the To group box, specify the full path to the data folder of the target project, to which the assets should be exported.
  4. In the Project edit line of the To group box, specify a relative path to the target project and click the Export button.

  5. In the Save Node dialog window that opens, choose the folder to save the selected nodes and click Ok.

Using the Target Project Structure

In this mode, the target project has the folder structure that differs from the structure of the source project. This mode should be used for exporting the assets without dependencies (e.g. ObjectMesh, ObjectGrass, etc.).

Notice
It is not recommended to export the following nodes by using this mode as it may cause duplicating of the content:

  1. In the Nodes panel of the UnigineEditor, select all of the nodes that need to be exported.
  2. Specify the paths to the source and target projects as described above.
  3. Check the Custom paths check box.
  4. Specify all of the required paths to the folders with the corresponding assets and click the Export button.

  5. In the Save Node dialog window that opens, choose the folder to save the selected nodes and click Ok.

Usage Example

To demonstrate usage of the Node Export plugin, lets export the assets of the D:/my_first_project/data/demos/src_project/ project to the D:/my_project/data/dest_project/ project that has a custom folder structure.

The assets of the source project are stored as follows:

  • materials
  • meshes
    • buildings
    • vegetation
    • vehicles
  • nodes
    • buildings
    • vegetation
    • vehicles
  • properties
  • textures
    • buildings
    • vegetation
    • vehicles

To export the assets, perform the following:

  1. Load the Node Export plugin
  2. Select the nodes that should be exported in the Nodes panel.
  3. Specify the demos/src_project in the edit line of the From group box.

  4. Specify the full path to the data folder of the target project.
  5. Specify the relative path to the target project:

  6. Check the Custom paths check box and specify the relative paths for each type of the assets:

  7. Click the Export button and choose the folder to save the selected nodes.

After exporting the assets, the target project D:/my_project/data/dest_project/ will have the following structure of the folders:

  • buildings
    • materials
    • meshes
    • nodes
    • textures
Last update: 03.07.2017
Build: ()