19 lines
648 B
Python
19 lines
648 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
|
|
class SeparateQuaternionNode(ArmLogicTreeNode):
|
|
"""Use to separate a transform."""
|
|
bl_idname = 'LNSeparateQuaternionNode'
|
|
bl_label = "Separate Quaternion"
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(SeparateQuaternionNode, self).init(context)
|
|
self.add_input('NodeSocketVector', 'Quaternion')
|
|
self.add_output('NodeSocketFloat', 'X')
|
|
self.add_output('NodeSocketFloat', 'Y')
|
|
self.add_output('NodeSocketFloat', 'Z')
|
|
self.add_output('NodeSocketFloat', 'W')
|
|
|
|
|
|
add_node(SeparateQuaternionNode, category=PKG_AS_CATEGORY, section='quaternions')
|