armory/blender/arm/logicnode/object/LN_get_object_uid.py
2021-10-18 17:53:09 -03:00

14 lines
369 B
Python

from arm.logicnode.arm_nodes import *
class GetUidNode(ArmLogicTreeNode):
"""Returns the uid of the given object."""
bl_idname = 'LNGetUidNode'
bl_label = 'Get Object Uid'
arm_section = 'props'
arm_version = 1
def arm_init(self, context):
self.add_input('ArmNodeSocketObject', 'Object')
self.add_output('ArmIntSocket', 'Uid')