Marco,<br><br>Thanks very much for your reply. Actually, it isn&#39;t the camera I need information on, it&#39;s the rest of the object. I need to know how big the thing I&#39;m looking at is, so I can know where exactly I should move the camera. And I can&#39;t figure out how to get bounding box on any of the objects that are available to me. Do you have any idea?<br>
<br><div class="gmail_quote">On Fri, Sep 2, 2011 at 4:05 AM, Marco Nawijn <span dir="ltr">&lt;<a href="mailto:nawijn@gmail.com">nawijn@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;">
Hello Rick,<br>
<br>
You can get a direct reference to the camera like this:<br>
<br>
    &gt;&gt;&gt; camera = GetActiveCamera()<br>
<br>
You have than full control with the different Get/Set methods. Like:<br>
<br>
    &gt;&gt;&gt; camera.GetFocalPoint()<br>
    (-12.119979858398438, -3.0926971435546875, 36.27721977233887)<br>
<br>
Don&#39;t forget to call Render() if you set camera parameters.<br>
<div><div></div><div class="h5"><br>
<br>
<br>
<br>
On Thu, Sep 1, 2011 at 11:46 PM, Rick Muller &lt;<a href="mailto:rpmuller@gmail.com">rpmuller@gmail.com</a>&gt; wrote:<br>
&gt; I&#39;m using the Python scripting facility in Paraview to do some batch<br>
&gt; visualization of some semiconductor models I&#39;m simulating. The Start/Stop<br>
&gt; Trace feature is great, and I&#39;ve already put together something quite<br>
&gt; usable. However, I can&#39;t figure out how to reset the camera between<br>
&gt; different simulations.<br>
&gt;<br>
&gt; The code coming out of the Trace feature looked something like:<br>
&gt;     rv = pv.GetRenderView()<br>
&gt;     rv.CameraFocalPoint = [0.223, -0.0160,-0.334]<br>
&gt;     rv.CameraParallelScale = 1.684<br>
&gt;     rv.CenterOfRotation = [0.223, -0.0160,-0.334]<br>
&gt;     rv.CameraPosition = [0.223, -0.0160, 4.105]<br>
&gt;     rv.CameraClippingRange = [5.308, 8.033]<br>
&gt; i.e. they already got the center of the object from some query to the<br>
&gt; objects already in the database. What would I have to do to get this<br>
&gt; information myself? I&#39;m having a hard time finding info. I&#39;ve tried reading<br>
&gt; the doctext for the Outline and OutlineCorners features, and I&#39;ve seen a<br>
&gt; couple refs to a GetBounds command while googling around, but I can&#39;t find<br>
&gt; anything that really helps.<br>
&gt;<br>
&gt; My pipeline looks something like:<br>
&gt; * Use the ExodusIIReader to create a reader object<br>
&gt; * Use the aforementioned render view object to control the camera<br>
&gt; * Create a slice object in the z-direction at a certain height<br>
&gt; * Create a data representation and a colormap<br>
&gt; * Render the object.<br>
&gt; I can&#39;t tell which of the objects I would use for an Outline() or a<br>
&gt; GetBounds() call. For example, I get the min/max values for the data in the<br>
&gt; slice via<br>
&gt;     min,max = slice.PointData[0].GetRange()<br>
&gt; but using s or s.PointData with Outline() or GetBounds() doesn&#39;t get me<br>
&gt; anywhere. Can anyone nudge me in the right direction?<br>
&gt;<br>
&gt; Thanks,<br>
&gt; Rick<br>
&gt;<br>
&gt; --<br>
&gt; Rick Muller<br>
&gt; <a href="mailto:rpmuller@gmail.com">rpmuller@gmail.com</a><br>
&gt; <a href="tel:505-750-7557" value="+15057507557">505-750-7557</a><br>
&gt;<br>
&gt;<br>
</div></div>&gt; _______________________________________________<br>
&gt; Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
&gt;<br>
&gt; Visit other Kitware open-source projects at<br>
&gt; <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
&gt;<br>
&gt; Please keep messages on-topic and check the ParaView Wiki at:<br>
&gt; <a href="http://paraview.org/Wiki/ParaView" target="_blank">http://paraview.org/Wiki/ParaView</a><br>
&gt;<br>
&gt; Follow this link to subscribe/unsubscribe:<br>
&gt; <a href="http://www.paraview.org/mailman/listinfo/paraview" target="_blank">http://www.paraview.org/mailman/listinfo/paraview</a><br>
&gt;<br>
&gt;<br>
</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>