On Wed, May 4, 2011 at 3:49 PM, Gael Varoquaux
<gael.varoqu...@normalesup.org> wrote:
> On Wed, May 04, 2011 at 03:43:19PM +0100, Michele Mattioni wrote:
>> Forgot to attach the link to the code!
>> https://gist.github.com/955320
>
> OK, as you are not directly using the mlab_source scalars, the pipeline
> refresh is not triggered right.
>
> Try to add something like 'tube.update_pipeline()' or
> 'tube.update_data()' after your call to change_scalar_array.

If I do that the cylinders are all red, while they should get
different colors according the to the scalar.

I can't use the mlab_source.scalars because it points to my diameter,
instead I want to change the color according to my_scalar_data

Cheers,
Michele.

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
MayaVi-users mailing list
MayaVi-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mayavi-users

Reply via email to