Thanks for the help people gave me for the question below. I now have a workable solution for much of the batch imaging I need to do. <br><br>I&#39;d now like to add some surface rendering, that is, setting <br>&gt;&gt;&gt; DataRepresentation.Representation = &#39;Surface&#39;<br>
&gt;&gt;&gt; DataRepresentation.ColorArrayName = &#39;solution&#39;<br><br>Previously, I had used the slice object to get the range of values and the bounds:<br><br>&gt;&gt;&gt; s = Slice(SliceType=&quot;Plane&quot;)<br>&gt;&gt;&gt; m,M = s.CellData[0].GetRange()<br>
&gt;&gt;&gt; xmin,xmax,ymin,ymax,zmin,zmax = s.GetDataInformation().DataInformation.GetBounds()<br><br>However, I no longer have the slice object. I have the DataRepresentation object, and the RenderView, and the output of the ExodusIIReader() call. I&#39;ve also defined a number of elementblocks that I can set via:<br>
<br>&gt;&gt;&gt; reader.ElementBlocks = [&#39;a&#39;,&#39;b&#39;]<br><br>Can I use any of the available objects to get the data and the boundary ranges?<br><br>Thanks in advance...<br><br><br><div class="gmail_quote">On Thu, Sep 1, 2011 at 3:46 PM, Rick Muller <span dir="ltr">&lt;<a href="mailto:rpmuller@gmail.com">rpmuller@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">I&#39;m using the Python scripting facility in Paraview to do some batch visualization of some semiconductor models I&#39;m simulating. The Start/Stop Trace feature is great, and I&#39;ve already put together something quite usable. However, I can&#39;t figure out how to reset the camera between different simulations.<br>

<br>The code coming out of the Trace feature looked something like:<br>    rv = pv.GetRenderView()<br>    rv.CameraFocalPoint = [0.223, -0.0160,-0.334]<br>    rv.CameraParallelScale = 1.684<br>    rv.CenterOfRotation = [0.223, -0.0160,-0.334]<br>

    rv.CameraPosition = [0.223, -0.0160, 4.105]<br>    rv.CameraClippingRange = [5.308, 8.033]<br>i.e. they already got the center of the object from some query to the objects already in the database. What would I have to do to get this information myself? I&#39;m having a hard time finding info. I&#39;ve tried reading the doctext for the Outline and OutlineCorners features, and I&#39;ve seen a couple refs to a GetBounds command while googling around, but I can&#39;t find anything that really helps.<br>

<br>My pipeline looks something like:<br>* Use the ExodusIIReader to create a reader object<br>* Use the aforementioned render view object to control the camera<br>* Create a slice object in the z-direction at a certain height<br>

* Create a data representation and a colormap<br>* Render the object.<br>I can&#39;t tell which of the objects I would use for an Outline() or a GetBounds() call. For example, I get the min/max values for the data in the slice via <br>

    min,max = slice.PointData[0].GetRange()<br>but using s or s.PointData with Outline() or GetBounds() doesn&#39;t get me anywhere. Can anyone nudge me in the right direction?<br><br>Thanks,<br>Rick<br clear="all"><font color="#888888"><br>
-- <br>
Rick Muller<br><a href="mailto:rpmuller@gmail.com" target="_blank">rpmuller@gmail.com</a><br><a href="tel:505-750-7557" value="+15057507557" target="_blank">505-750-7557</a><br><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Rick Muller<br><a href="mailto:rpmuller@gmail.com">rpmuller@gmail.com</a><br>505-750-7557<br><br>