<div dir="ltr">Hi, I'm trying to create a selection using python, but I have a little question<div><br></div><div>I use this script (as a macro)</div><div><br></div><div><div>source = GetActiveSource()</div><div>activeView = GetActiveView()</div><div>props = GetDisplayProperties(source,view=activeView)</div><div>fieldtype, arrayname = props.ColorArrayName</div><div>a = paraview.simple._select(fieldtype[0:-1], arrayname,source)</div><div>Render()</div><div><br></div><div>this will highlight all the entities (points or cells) with values different form zero in the current view (this work great)</div></div><div><br></div><div>the only problem is that the clear selection icon ("garbage icon") is disable and the only way to clear the selection is to create a new selection (using the mouse) and the clear it using the button.</div><div><br></div><div>Any ideas.</div><div>thanksĀ </div><div><br></div><div>Felipe</div><div><br></div><div><br></div></div>