14 lines
455 B
Python
14 lines
455 B
Python
from arm.logicnode.arm_nodes import *
|
|
|
|
class DegToRadNode(ArmLogicTreeNode):
|
|
"""Use to convert 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')
|