LNXSDK/leenkx/blender/lnx/logicnode/math/LN_deg_to_rad.py
2025-01-22 16:18:30 +01:00

14 lines
363 B
Python

from lnx.logicnode.lnx_nodes import *
class DegToRadNode(LnxLogicTreeNode):
"""Converts degrees to radians."""
bl_idname = 'LNDegToRadNode'
bl_label = 'Deg to Rad'
lnx_version = 1
lnx_section = 'angle'
def lnx_init(self, context):
self.add_input('LnxFloatSocket', 'Degrees')
self.add_output('LnxFloatSocket', 'Radians')