96aa0ee890
This allows to listen for socket updates for the live patch system
21 lines
759 B
Python
21 lines
759 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
@deprecated('Play Action From')
|
|
class PlayActionNode(ArmLogicTreeNode):
|
|
"""Plays the given action."""
|
|
bl_idname = 'LNPlayActionNode'
|
|
bl_label = 'Play Action'
|
|
bl_description = "Please use the \"Play Action From\" node instead"
|
|
arm_category = 'Animation'
|
|
arm_version = 2
|
|
|
|
def init(self, context):
|
|
super(PlayActionNode, self).init(context)
|
|
self.add_input('ArmNodeSocketAction', 'In')
|
|
self.add_input('ArmNodeSocketObject', 'Object')
|
|
self.add_input('ArmNodeSocketAnimAction', 'Action')
|
|
self.add_input('ArmFloatSocket', 'Blend', default_value=0.2)
|
|
self.add_output('ArmNodeSocketAction', 'Out')
|
|
self.add_output('ArmNodeSocketAction', 'Done')
|