<div dir="ltr">Change that to SetInputData.<div style>The API for connecting filters to filters and filter to data differentiated like so in VTK6</div><div style>filter->filter SetInput < 6.0 > SetInputConnection</div>
<div style>data->filter SetInput < 6.0 > SetInputData</div></div><div class="gmail_extra"><br clear="all"><div>David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>
Phone: 518-881-4909</div>
<br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 4:35 PM, John Fraser <span dir="ltr"><<a href="mailto:logic_cube@btinternet.com" target="_blank">logic_cube@btinternet.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div style="font-size:10pt;font-family:arial,helvetica,sans-serif">Hello,<br><br>I'm using ParaView 4.01 32 bit and trying out an example Python programmable filter, however it seems I am unable to use some VTK methods and get the resulting errors:<br>
<br>Traceback (most recent call last):<br>File "<string>", line 21, in <module><br>File "<string>", line 7, in RequestData<br>AttributeError: SetInput<br><br>Here is the example taken from the wiki that produces this error<br>
<br>pinput = vtk.vtkImageData()<br>pinput.SetExtent(0, 10, 0, 10, 0, 10)<br>pinput.SetOrigin(0, 1, 0)<br>pinput.SetSpacing(0.5, 0.5, 0.5)<br>probe = vtk.vtkProbeFilter()<br>probe.SetInput(pinput)<br>input_copy = inputs[0].NewInstance()<br>
input_copy.UnRegister(None)<br>input_copy.ShallowCopy(inputs[0].VTKObject)<br>probe.SetSource(input_copy)<br>probe.Update()<br>output.ShallowCopy(probe.GetOutput())<br><br>The other
filters on the wiki that don't use include the use of VTK filters work fine, e.g. the script called "transform the input" works just fine. Does anyone know what I'm missing?<span class="HOEnZb"><font color="#888888"><br>
<br>John<br><br><div><br></div></font></span></div></div><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
<br></blockquote></div><br></div>