Hi Raj, <div><br></div><div>I managed to show the correct color by executing that:</div><div><br></div><div><div>sliceType.setNormal(0,0,1);</div><div>sliceType.setOrigin(view1.getCenterOfRotation());</div></div><div><div>
pv.SetDisplayProperties( {proxy : slice, view : view1, Representation : 'Surface', ColorArrayName : 'ImageFile'} );</div><div><br></div><div>In fact you shouldn't set any normal/origin on the widget, but instead set them on the plan of the Slice filter.</div>
<div>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.</div><div><br></div></div><div>Seb</div>