francoisgfx / substance_painter2ue

A substance Painter plugin which export textures and automatically import them into an opened Unreal Editor project. It created a connection between SP and UE and sends command to UE to import the textures.
Apache License 2.0
22 stars 1 forks source link
substance substance-painter unreal unreal-engine unreal-engine-4 unreal-engine-5 unrealengine

Substance Painter To Unreal Engine.

A substance Painter plugin which export textures and automatically import them into an opened Unreal Editor project. It created a connection between SP and UE and sends command to UE to import the textures.

Installation

Usage

Options

In Substance Painter, go to Window > Views > Send To Unreal Engine (a panel will open).

The first combobox let you select the Unreal Editor to send the texture to (in case you have more than one Unreal open). It displays the name of the Unreal project, and the ID to connect to.

The second combobox let you select which export presets to use. Those are hardcoded for now.

'Export path' defines where the texture will be exported on disc before being imported in UE. This could be any temporary folder.

'Asset Name' is not use for now.

'UE Content Path' defines where to import the textures in Unreal Content directory. Where /Game/ means the 'Content' folder in the Unreal project. You want to always import the texture in the same folder for your preview to update automatically.

Shortcut

You can use Ctrl+Shift+U to do the export.

Environement Variables

The plugin could be configure through environement variables.

Environment Var Description
SP2UE_ASSET_NAME Name of the current asset
SP2UE_EXPORT_PATH Path where to temporary export textures on disc. If it is not define it will look for SUBSTANCE_PAINTER_TEMP_LOCATION. If neither are defined it will use a temp folder.
SP2UE_UE_CONTENT_PATH Path in the Unreal Content Directory. (ie /Game/ is the content directory)
SP2UE_PRESET Defines the export preset name (not used yet)

TODO