16 lines
468 B
Python
16 lines
468 B
Python
import bpy
|
|
from bpy.props import *
|
|
from bpy.types import Node, NodeSocket
|
|
from arm.logicnode.arm_nodes import *
|
|
|
|
class GetScaleNode(ArmLogicTreeNode):
|
|
'''Get scale node'''
|
|
bl_idname = 'LNGetScaleNode'
|
|
bl_label = 'Get Scale'
|
|
bl_icon = 'NONE'
|
|
|
|
def init(self, context):
|
|
self.inputs.new('ArmNodeSocketObject', 'Object')
|
|
self.outputs.new('NodeSocketVector', 'Scale')
|
|
|
|
add_node(GetScaleNode, category=MODULE_AS_CATEGORY, section='scale')
|