All pastes #249045 Raw Edit

jesterKing

public python v1 · immutable
#249045 ·published 2006-11-15 10:33 UTC
rendered paste body
# some output currently generated:# Texture coordinate (0.061890885233879089, -0.45436245203018188, 0.88916003704071045)# Surface normal (-0.070243678987026215, -0.88472998142242432, -0.46078059077262878)# Surface view vector (0.030386274680495262, 0.43047207593917847, -0.90209227800369263)# View normal (-0.062225442379713058, -0.88793331384658813, -0.4557437002658844)import Blenderimport Blender.Nodeclass MyNode(Blender.Node.node):        def show(self, shi):        # normally you'd do something groovy here        print "Texture coordinate", shi.tex_coord        print "Surface normal", shi.surface_normal        print "Surface view vector", shi.surface_view_vec        print "View normal", shi.view_normal    def __call__(self, shi):        self.show(shi)# currently we still need to do this. 'node' is the name we neednode=MyNode()