Download

Reimport Asset through Python

Need some help with how to reimport an asset from python.

My asset importer imports an fbx to a temp folder then moves all the assets to their proper location once it figures out the proper naming.
This works great unless the asset already exists. Then it errors saying asset exists so I thought for those cases I’d just reimport on the existing asset. However I can’t find any way to force an asset reimport.

Anybody have this working?

OK I think I got it:
It wasn’t clear that the import task could target a specific imported asset without reimporting everything, so just resuing the import task seems to be working.

I have the same problem as you had years ago @straightdiesel . can you explain me more, what to you mean by reusing import task?

reusing this function doesn’t seems to work and re-import existing assets.
Thank you