<div dir="ltr">Hi there, <div><br></div><div>I&#39;m running Paraview 4.0 RC 2 and trying to make a selection from Python shell. First I used the Find Data dialog with Python trace to get on track and then do it all from the shell. </div>
<div><br></div><div>I have a Legacy VTK source with 2Tuple point data, and would like to extract a selection based on the point data magnitude (Surface_pressure). The following commands are given in the shell: </div><div>
<br></div><div>ex = ExtractSelection()</div><div>
<p style="margin:0px"><span style="font-family:Courier;font-size:9pt;color:rgb(0,0,0)">sqs = SelectionQuerySource( ProcessID=-1, QueryString=&#39;mag(Surface_pressure) &gt;= 100&#39;, HierarchicalIndex=-1, FieldType=&#39;POINT&#39;, HierarchicalLevel=-1)</span></p>
<div>ex.Selection = sqs<br></div><div style>Show()</div><div><br></div><div style>but I get the following runtime exception</div><div style><br></div><div style>
<p style="margin:0px"><span style="font-family:Courier;font-size:9pt;color:rgb(255,0,0)">Traceback (most recent call last):</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:9pt;color:rgb(255,0,0)">  File &quot;&lt;console&gt;&quot;, line 1, in &lt;module&gt;</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:9pt;color:rgb(255,0,0)">  File &quot;/usr/local/ParaView-4.0.0-RC2-Linux-64bit/lib/paraview-4.0/site-packages/paraview/simple.py&quot;, line 300, in Show</span></p>

<p style="margin:0px"><span style="font-family:Courier;font-size:9pt;color:rgb(255,0,0)">    raise RuntimeError, &quot;Could not create a representation object for proxy %s&quot; % proxy.GetXMLLabel()</span></p>
<p style="margin:0px"><span style="font-family:Courier;font-size:9pt;color:rgb(255,0,0)">RuntimeError: Could not create a representation object for proxy SelectionQuerySource</span></p></div><div><br></div><div>The Python trace does not help as it does not show any proxy handling. Is this a proxy issue or something else? Thanks. <br>
</div><div><br></div><br></div></div>