<div dir="ltr"><div>Hi Mark,<br><br></div><div>The adaptor is meant to convert a simulation code&#39;s data structures into something that derives from vtkDataObject. So the adaptor could have a RAW binary file passed in and produce a vtkImageData for your case. As far as the Catalyst Python script is concerned, all it is expecting at for the source is a vtkImageData in your example. It may be that the bounding box of the data coming in from the RAW file is different than the vtkImageData you load in the second time. I&#39;d suggest checking that. <br>
<br></div><div>Something else you could try is the &quot;fit to screen&quot; option when outputting screenshots from Catalyst. That should behave similarly to the fit to screen option in the GUI. <br><br></div><div>Let me know if this isn&#39;t clear since I&#39;m not sure I answered your question.<br>
<br>Andy<br></div><div><br><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Aug 16, 2013 at 1:37 PM, Vanmoer, Mark W <span dir="ltr">&lt;<a href="mailto:mvanmoer@illinois.edu" target="_blank">mvanmoer@illinois.edu</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">





<div link="blue" vlink="purple" lang="EN-US">
<div>
<p class="MsoNormal">Hello, is there a way to set up a coprocessing adaptor to work with RAW binary files? What I’ve done in the past is to first load a RAW binary in the GUI and export a coprocessing script to save a vti, run the simulation a single timestep
 writing the vti, then load that and save another script to create images from the full simulation.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I tried skipping the write to vti step and instead have the render-to-image script based on the RAW binary source. Attached is what I get, the image_216.png, where it appears to have moved the camera position quite a bit. I looked at the
 Python, and it appears to have the correct camera positions, etc.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">In the C++ adaptor, I have the  data set as a vtkImageData and I figure this is where the problem is, since the adaptor is expecting that and not RAW binary. Would I have to load the data into some intermediary vtkDoubleArrays, say, and
 then supply those to the vtkImageData? Or is there more to it than that?<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">This is more out of curiosity since the other approach works fine.<span class="HOEnZb"><font color="#888888"><u></u><u></u></font></span></p><span class="HOEnZb"><font color="#888888">
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">Mark<u></u><u></u></p>
</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>