wassimj / TopologicSverchok

Topologic custom nodes for sverchok on Blender3D
GNU Affero General Public License v3.0
83 stars 18 forks source link

Stethoscope printing #4

Closed zeffii closed 3 years ago

zeffii commented 3 years ago

epic effort @wassimj , as a windows user i'm going to have to abstractly discuss this.

"""
in verts s
out objects s
"""

class derp(object):
    def __init__(self, holds="Nothing"):
        self.typed = holds

    def __repr__(self):
        return self.typed

F = derp("choopt")
G = derp("okaloo")

objects.extend([F, G])

image

rather than adjusting SvStethoscope node, i'm going to ask you if you've tried adding a __repr__ to the classes/objects you're passing around in Sverchok. That way you can control in a more granular way what Sverchok prints upon encountering your objects in SvStethoscope.