INNER CODE UNIT · Python
GetEditorUtility
mamoniem/UnrealEditorPythonScripts · Animation/SetAllAnimNotifyProperty.py:15
class GetEditorUtility(unreal.GlobalEditorUtilityBase):
pass
@unreal.uclass()
class GetEditorAssetLibrary(unreal.EditorAssetLibrary):
pass
@unreal.uclass()
class GetAnimationLibrary(unreal.AnimationLibrary):
pass
editorUtility = GetEditorUtility()
animLib = GetAnimationLibrary()
selectedAssets = editorUtility.get_selected_assets()
for selectedAsset in selectedAssets:
allEventsForSelectedAsset = animLib.get_animation_notify_events(selectedAsset)