14 lines
449 B
Python
14 lines
449 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class DegToRadNode(ArmLogicTreeNode):
|
|
"""Converts degrees to radians."""
|
|
bl_idname = 'LNDegToRadNode'
|
|
bl_label = 'Deg to Rad'
|
|
arm_version = 1
|
|
|
|
def init(self, context):
|
|
super(DegToRadNode, self).init(context)
|
|
self.add_input('NodeSocketFloat', 'Degrees')
|
|
self.add_output('NodeSocketFloat', 'Radians')
|
|
|
|
add_node(DegToRadNode, category=PKG_AS_CATEGORY, section='angle')
|