# -*- coding: utf-8 -*- def make_duck(x=0,y=0,z=0, name='duck'): if name in bpy.data.objects: ob = bpy.data.objects[ name ] api[ob].location(x,y,z) return ob duck = api.link_file('DUCK') duck.name = name api[duck].location(x,y,z) return duck class duck_plugin( object ): icon = u'𓅬' title = 'Duck' inputs = [(2,'name'), (1,'x'), (1,'y'), (1,'z')] def __init__(self, node): self.signal = node(self, bpy=make_duck) def eval(self, name, x,y,z): self.signal( x,y,z, name=name ) return name def register( api ): api['register_node']( duck_plugin )