20 lines
713 B
Python
20 lines
713 B
Python
|
from lnx.logicnode.lnx_nodes import *
|
||
|
|
||
|
|
||
|
@deprecated('Play Action From')
|
||
|
class PlayActionNode(LnxLogicTreeNode):
|
||
|
"""Plays the given action."""
|
||
|
bl_idname = 'LNPlayActionNode'
|
||
|
bl_label = 'Play Action'
|
||
|
bl_description = "Please use the \"Play Action From\" node instead"
|
||
|
lnx_category = 'Animation'
|
||
|
lnx_version = 2
|
||
|
|
||
|
def lnx_init(self, context):
|
||
|
self.add_input('LnxNodeSocketAction', 'In')
|
||
|
self.add_input('LnxNodeSocketObject', 'Object')
|
||
|
self.add_input('LnxNodeSocketAnimAction', 'Action')
|
||
|
self.add_input('LnxFloatSocket', 'Blend', default_value=0.2)
|
||
|
self.add_output('LnxNodeSocketAction', 'Out')
|
||
|
self.add_output('LnxNodeSocketAction', 'Done')
|