2017-04-08 00:34:45 +02:00
|
|
|
import bpy
|
|
|
|
from bpy.props import *
|
|
|
|
from bpy.types import Node, NodeSocket
|
|
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
|
|
class PlayActionNode(Node, ArmLogicTreeNode):
|
|
|
|
'''Play action node'''
|
|
|
|
bl_idname = 'LNPlayActionNode'
|
|
|
|
bl_label = 'Play Action'
|
|
|
|
bl_icon = 'GAME'
|
|
|
|
|
|
|
|
def init(self, context):
|
2017-04-08 20:05:35 +02:00
|
|
|
self.inputs.new('ArmNodeSocketAction', 'In')
|
2017-04-08 00:34:45 +02:00
|
|
|
self.inputs.new('ArmNodeSocketObject', 'Object')
|
2017-09-08 13:57:34 +02:00
|
|
|
self.inputs.new('ArmNodeSocketAnimAction', 'Action')
|
2017-04-08 20:05:35 +02:00
|
|
|
self.outputs.new('ArmNodeSocketAction', 'Out')
|
|
|
|
self.outputs.new('ArmNodeSocketAction', 'Done')
|
2017-04-08 00:34:45 +02:00
|
|
|
|
|
|
|
add_node(PlayActionNode, category='Animation')
|