Hello,
I’m trying to re-import a static mesh, but it needs to be deleted first for any changes to the fbx static mesh import data to be picked up.
My problem is that I only want to delete it if any options from the original asset have changed (remove degenerates, import mesh lods, vertex color import option).
To get these values, I’m loading the existing static mesh to get the asset import data, but unreal.EditorAssetLibrary.delete_asset(full_sm_path) and the delete_loaded_asset function both seem to fail, since it’s still referenced in my python code(?).
In the past I have used:
ast.literal_eval(existing_sm.get_tag_value(“AssetImportData”))
to get the FBX path of an asset without loading it, but the attributes I need don’t seem to be stored in here.
Is there any way to either un-reference or un-load the asset in python, or a way to get these attributes without loading the asset?
Thank you!