16 lines
564 B
Python
16 lines
564 B
Python
from lnx.logicnode.lnx_nodes import *
|
|
|
|
class SetActionFrameNode(LnxLogicTreeNode):
|
|
"""Sets the current action frame for the given object."""
|
|
bl_idname = 'LNSetActionFrameNode'
|
|
bl_label = 'Set Action Frame'
|
|
bl_width_default = 200
|
|
lnx_version = 1
|
|
|
|
def lnx_init(self, context):
|
|
self.add_input('LnxNodeSocketAction', 'In')
|
|
self.add_input('LnxNodeSocketObject', 'Object')
|
|
self.add_input('LnxStringSocket', 'Action ID')
|
|
self.add_input('LnxIntSocket', 'Frame')
|
|
|
|
self.add_output('LnxNodeSocketAction', 'Out') |