Download

Fix redirectors via python.

Is there a way to fix up redirectors via python? Did a search for redirectors and came up with nothing useful.

+1. I have the same question.

@HappyTank2 have you tried


 unreal.AssetTools.rename_assets() 

and


unreal.AssetRenameData

.

I haven’t, but they look promising. Nothing is mentioned about redirecting with those, so I hope they will work that out for you.

so I found a faint clue:


unreal.AssetData.is_redirector() 

tells me that redirector is an asset itself. However, this makes me think that with Python scripting, redirection may not be as straightforward as it looks in the Editor: You would work through a bunch of “secondary” redirector assets to fix other assets. So some associations must be made bottom-up. Seems a daunting task to me…