Skip to content

Instantly share code, notes, and snippets.

@zeffii
Forked from anonymous/ui_ops2.py
Created May 6, 2014 06:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zeffii/7fff17749b5c68839119 to your computer and use it in GitHub Desktop.
Save zeffii/7fff17749b5c68839119 to your computer and use it in GitHub Desktop.
def sv_main(items_in=[]):
in_sockets = [
['v', 'items_in', items_in]]
Verts = []
def func1():
# directly from incoming Object_in socket.
sn = bpy.context.node
obj_in = sn.inputs[0].links[0].from_node
obj_names = obj_in.get('objects_local', None)
print(str(obj_names))
out_sockets = [['v', 'Verts', [Verts]]]
ui_operators = [['print_names', func1]]
return in_sockets, out_sockets, ui_operators
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment