Updated
This commit is contained in:
23
Scripts/Animation/epic_pose_wrangler/v2/model/base_action.py
Normal file
23
Scripts/Animation/epic_pose_wrangler/v2/model/base_action.py
Normal file
@ -0,0 +1,23 @@
|
||||
# Copyright Epic Games, Inc. All Rights Reserved.
|
||||
import abc
|
||||
|
||||
class BaseAction(object):
|
||||
__display_name__ = "BaseAction"
|
||||
__tooltip__ = ""
|
||||
__category__ = ""
|
||||
|
||||
@classmethod
|
||||
@abc.abstractmethod
|
||||
def validate(cls, ui_context):
|
||||
raise NotImplementedError
|
||||
|
||||
@abc.abstractmethod
|
||||
def execute(self, ui_context=None, **kwargs):
|
||||
raise NotImplementedError
|
||||
|
||||
def __init__(self, api=None):
|
||||
self._api = api
|
||||
|
||||
@property
|
||||
def api(self):
|
||||
return self._api
|
Reference in New Issue
Block a user