Hey there,
As a newbie to coding for Unreal I’ve been struggling with some of this same stuff for the last few weeks. Hopefully I can save you some of the pain I went through :):
Try this instead:
unreal.load_asset(path_to_asset)
# Where *path_to_asset* would be something like:
path_to_asset = '/Game/SkeletalMeshes/Char1_Skeleton'
Instead of AssetRegistry, first use AssetRegistryHelpers to actually get the registry (I’m not sure I understand the logic but there you go):
asset_reg = unreal.AssetRegistryHelpers.get_asset_registry()
# Then you can "extract" the assets from the registry:
asset_reg.get_all_assets()
Similar to previous case:
asset_reg = unreal.AssetRegistryHelpers.get_asset_registry()
asset_reg.get_asset_by_object_path(path_to_asset)
Hope that helps.