Create new node to set if bones are FK IK only
This commit is contained in:
parent
86316a10bd
commit
e7c1855b81
17
blender/arm/logicnode/animation/LN_set_bone_fk_ik_only.py
Normal file
17
blender/arm/logicnode/animation/LN_set_bone_fk_ik_only.py
Normal file
|
@ -0,0 +1,17 @@
|
|||
from arm.logicnode.arm_nodes import *
|
||||
|
||||
class SetBoneFkIkOnlyNode(ArmLogicTreeNode):
|
||||
"""Set particular bone to be animated by Forward kinematics or Inverse kinematics only. All other animations will be ignored"""
|
||||
bl_idname = 'LNSetBoneFkIkOnlyNode'
|
||||
bl_label = 'Set Bone FK IK Only'
|
||||
arm_version = 1
|
||||
arm_section = 'armature'
|
||||
|
||||
def init(self, context):
|
||||
super(SetBoneFkIkOnlyNode, self).init(context)
|
||||
self.add_input('ArmNodeSocketAction', 'In')
|
||||
self.add_input('ArmNodeSocketObject', 'Object')
|
||||
self.add_input('NodeSocketString', 'Bone')
|
||||
self.add_input('NodeSocketBool', 'FK or IK only')
|
||||
|
||||
self.add_output('ArmNodeSocketAction', 'Out')
|
Loading…
Reference in a new issue