All pastes #248951 Raw Edit

jesterKing

public python v1 · immutable
#248951 ·published 2006-11-15 05:43 UTC
rendered paste body
# The new script formimport Blenderimport Blender.Nodeclass MyNode(Blender.Node.node):    def dosomething(self, x, y, z):        a = x+y+z        print "%.2f" % (a)        def show(self):        print "Texture coordinate", self.tex_coord        print "Surface normal", self.surface_normal        print "Surface view vector", self.surface_view_vec        print "View normal", self.view_normal    def __call__(self, x, y, z):        self.dosomething(x, y, z)        self.show()mynode=MyNode()