On Thu, Nov 18, 2010 at 03:54:35PM +0100, moscardi wrote: > with the callback function :
> def picker_callback(picker_obj): > # Marking of the region, I just change the transparency for the moment (I > look for a other way) > cellid = data[picker_obj.mapper_position] > if cellid != 0 : > lut[cellid-1,3] = 50 > surf.module_manager.scalar_lut_manager.lut.table =lut > mlab.draw() I think that it is better to retrieve the value of the data at the pick position: if picker.mapper is None: return cellid = int(picker.mapper.input.point_data.scalars[picker.point_id]) col[cellid,3] = 50 This works well if you don't have overlap between objects. It is a more 'canonical way' of getting the scalar value. Sorry, I won't investigate further to see how the remaining flustuations can be explained: it's too late, and I have do=too busy days. G ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ MayaVi-users mailing list MayaVi-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mayavi-users