Hi all, I have a scene that represent a molecule that I built more or less on the following way:
... pts = self.scene.mlab.quiver3d(x, y, z, atomsScales, v, w, scalars=scalars, mode='sphere', vmin=0.0, vmax=1.0, figure = scene) pts.mlab_source.dataset.lines = bonds tube = scene.mlab.pipeline.tube(pts, tube_radius=0.01) tube.filter.radius_factor = 1 tube.filter.vary_radius = 'vary_radius_by_scalar' surf = scene.mlab.pipeline.surface(tube, opacity=0.6, color=(0.8,0.8,0)) ... I would like to change the color of some specific bond say [[1,2],[5,8],[9,10]]. I tried to use the surf.module_manager.scalar_lut_manager but I did not succeed (or perhaps did not understand how to succeed !). Would you have any idea how to achieve this ? thanks for your help Eric -- Eric Pellegrini Calcul Scientifique Institut Laue-Langevin Grenoble, France ------------------------------------------------------------------------------ The demand for IT networking professionals continues to grow, and the demand for specialized networking skills is growing even more rapidly. Take a complimentary Learning@Cisco Self-Assessment and learn about Cisco certifications, training, and career opportunities. http://p.sf.net/sfu/cisco-dev2dev _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users