Hi Raj,
I managed to show the correct color by executing that:
sliceType.setNormal(0,0,1);
sliceType.setOrigin(view1.getCenterOfRotation());
pv.SetDisplayProperties( {proxy : slice, view : view1, Representation :
'Surface', ColorArrayName : 'ImageFile'} );
In fact you shouldn't set any normal/origin on the widget, but instead set
them on the plan of the Slice filter.
The reason why you couldn't select the ColorArrayName was because the plane
was outside the bound of your dataset which was producing no output and
therefore no data array.
Seb
_______________________________________________
Powered by www.kitware.com
Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html
Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView
Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview