Update Files
This commit is contained in:
20
leenkx/blender/lnx/logicnode/animation/LN_switch_action.py
Normal file
20
leenkx/blender/lnx/logicnode/animation/LN_switch_action.py
Normal file
@ -0,0 +1,20 @@
|
||||
from lnx.logicnode.lnx_nodes import *
|
||||
|
||||
class SwitchActionNode(LnxLogicTreeNode):
|
||||
"""Switch between the two given actions with interpolation."""
|
||||
bl_idname = 'LNSwitchActionNode'
|
||||
bl_label = 'Switch Action'
|
||||
lnx_version = 1
|
||||
|
||||
def lnx_init(self, context):
|
||||
self.add_input('LnxNodeSocketAction', 'Action 1')
|
||||
self.add_input('LnxNodeSocketAction', 'Action 2')
|
||||
self.add_input('LnxNodeSocketObject', 'Object')
|
||||
self.add_input('LnxNodeSocketAnimTree', 'Action 1')
|
||||
self.add_input('LnxNodeSocketAnimTree', 'Action 2')
|
||||
self.add_input('LnxBoolSocket', 'Restart', default_value = True)
|
||||
self.add_input('LnxFloatSocket', 'Time', default_value = 1.0)
|
||||
self.add_input('LnxIntSocket', 'Bone Group', default_value = -1)
|
||||
|
||||
self.add_output('LnxNodeSocketAction', 'Done')
|
||||
self.add_output('LnxNodeSocketAnimTree', 'Result')
|
Reference in New Issue
Block a user