iTranslated by AI
The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
🐍
[UE4][UE5] Calling Asset Reimport from Python
Overview
How to call Context Menu -> Reimport in the Content Browser using Python

Code
No error or exception handling is included, so please add it when you use this.
As described, create an ImportTask, set the properties, and pass it to AssetTools.
Discussion