from lnx.logicnode.lnx_nodes import * class OneShotActionNode(LnxLogicTreeNode): """Introduce one loop of animation in the current tree.""" bl_idname = 'LNOneShotActionNode' bl_label = 'One Shot Action' bl_width_default = 250 lnx_version = 1 property0: HaxeStringProperty('property0', name = 'Action ID', default = '') def lnx_init(self, context): self.add_input('LnxNodeSocketAction', 'Start') self.add_input('LnxNodeSocketAction', 'Stop') self.add_input('LnxNodeSocketObject', 'Object') self.add_input('LnxNodeSocketAnimTree', 'Main Action') self.add_input('LnxNodeSocketAnimAction', 'One Shot') self.add_input('LnxBoolSocket', 'Restart', default_value = True) self.add_input('LnxFloatSocket', 'Blend In Time', default_value = 1.0) self.add_input('LnxFloatSocket', 'Blend Out Time', default_value = 1.0) self.add_input('LnxIntSocket', 'Bone Group', default_value = -1) self.add_output('LnxNodeSocketAction', 'Out') self.add_output('LnxNodeSocketAction', 'Done') self.add_output('LnxNodeSocketAnimTree', 'Result') def draw_buttons(self, context, layout): layout.prop(self, 'property0')