Enfusion Blender Tools: Objects Tools

From Bohemia Interactive Community
Jump to navigation Jump to search


Automatic Sorting of Objects

armareforger-blender-object-tools-overview.png

Sort Objects operator is located in side panel of viewport and can be found Enfusion Tools tab. This tool creates new collections for all objects in the scene similar to the structure that is used in Workbench. That means that for instance all objects with one of the collider prefixes like UCL, UTM & similar, will be assigned to Colliders collection. Additionally, this tool will also create sub collections for layer presets it detected on colliders objects, move all empty objects to Memory Points collection, and put all armatures into Skeletons collection. Full list of all recognized suffixes & prefixes is attached below.

Sort Objects have following optional parameters:

  • Fold collections - All collections will be automatically folded after this action is activated
  • Hide collections - All collections, except first visual LOD, will be hidden
  • Separate by materials - Objects in LOD collections will be additionally separated by their material
Prefix/Suffix Collection
UCL_

UCX_

UBX_

UTM_

USP_

UCS_

COM_

LC_

Colliders
PRT_ Light Portals
BOXVOL_ Volumetric Boxes
OCC_ Occluders
SOCKET_ Memory Points
_LODxx LODx


This functionality depends on Enfusion Blender Tools Data being installed correctly. Without it, layer presets & game materials will be missing!


Colliders & Layer Presets Setup

armareforger-blender-object-tools-layers.png

Before using Colliders Setup tool, you need to define path to your Reforger data. To do so, go Edit → Preferences → Addons & locate 3D View: Enfusion Tools addons. If it's not already activated then please do so!

In Addon Folders field please select folder where you have checked out Reforger data. After that, script will fetch from all gproj data about all available LayerPresets & list all Game Materials found in those addons. That check is performed on Blender startup, so this list should be always up to date.

armareforger-blender-object-tools-layers2.png

With Collider Setup button it is possible to change assigned Game Material or Layer Preset for one or multiple selected objects in Colliders collection (including sub collections).


Game materials menu omits materials which ends with _base word in order to avoid cluttering the list too much.

In Object Mode material will be applied to whole object and will remove all other materials from it. It is also possible to change Layer Presets in this mode.

armareforger-blender-object-tools-colliders.gif

Assignment of multiple different game materials per object is possible only in Edit Mode. Such action can be performed by simply selecting some of the faces and then using Colliders Setup button

armareforger-blender-object-tools-colliders-edit.gif