def InvertPitch(n): euler = n.getEuler() euler[1] = -euler[1] n.setEuler(euler) vizact.onupdate(viz.PRIORITY_LINKS+1,InvertPitch,node)