I omitted that line before because I was getting the following error. Readding it gives this error:<br><div class="gmail_quote">Traceback (most recent call last):<br>  File &quot;/home/user/DNS/volume.py&quot;, line 40, in &lt;module&gt;<br>
    DataRepresentation2.ColorArrayName = &#39;volume_scalars&#39;<br>
  File &quot;/home/user/Programs/ParaView-3.11.1-git/bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 212, in __setattr__<br>    setter(self, value)<br>  File &quot;/home/user/Programs/ParaView-3.11.1-git/bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 2267, in setProperty<br>

    return self.SetPropertyWithName(propName, value)<br>  File &quot;/home/user/Programs/ParaView-3.11.1-git/bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 267, in SetPropertyWithName<br>

    prop.SetData(arg)<br>  File &quot;/home/user/Programs/ParaView-3.11.1-git/bin/Utilities/VTKPythonWrapping/site-packages/paraview/servermanager.py&quot;, line 695, in SetData<br>    raise ValueError(&quot;Could not locate array %s in the input.&quot; % arr)<br>

ValueError: Could not locate array volume_scalars in the input.<br><font color="#888888"><br>Jesus</font><div><div></div><div class="h5"><br><br><div class="gmail_quote">On Mon, Aug 29, 2011 at 3:53 PM, Utkarsh Ayachit <span dir="ltr">&lt;<a href="mailto:utkarsh.ayachit@kitware.com" target="_blank">utkarsh.ayachit@kitware.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Try adding:<br>
<br>
DataRepresentation2.ColorArrayName = &#39;volume_scalars&#39;<br>
<br>
Utkarsh<br>
<div><div></div><div><br>
On Wed, Aug 24, 2011 at 7:02 PM, Jesus Pulido &lt;<a href="mailto:jpulido@ucdavis.edu" target="_blank">jpulido@ucdavis.edu</a>&gt; wrote:<br>
&gt; I am trying to volume render an unstructured grid of points using pvbatch<br>
&gt; but I am getting an error:<br>
&gt;<br>
&gt; ERROR: In<br>
&gt; /home/user/Programs/ParaView-3.11.1-git/ParaView/VTK/VolumeRendering/vtkUnstructuredGridVolumeRayCastMapper.cxx,<br>
&gt; line 211<br>
&gt; vtkUnstructuredGridVolumeRayCastMapper (0x2473a40): Can&#39;t use the ray cast<br>
&gt; mapper without scalars!<br>
&gt;<br>
&gt; When trying to use Bunyk Ray casting<br>
&gt;<br>
&gt; and<br>
&gt;<br>
&gt; ERROR: In<br>
&gt; /home/user/Programs/ParaView-3.11.1-git/ParaView/VTK/VolumeRendering/vtkOpenGLProjectedTetrahedraMapper.cxx,<br>
&gt; line 237<br>
&gt; vtkOpenGLProjectedTetrahedraMapper (0x2ab3190): Can&#39;t use projected<br>
&gt; tetrahedra without scalars!<br>
&gt;<br>
&gt; When trying to use Projected tetra.<br>
&gt;<br>
&gt; I am using the &quot;latest&quot; git version as of today. I also tried with PV3.10.1<br>
&gt; 64bit linux binary and I am having the same error with pvbatch.<br>
&gt;<br>
&gt;<br>
&gt; Here is the script that I am using in pvbatch. I generated this script with<br>
&gt; the help from using python trace within paraview (where the rendering<br>
&gt; works). I think it tries to reference the data under<br>
&gt;<br>
&gt; Threshold1.Scalars = [&#39;POINTS&#39;, &#39;volume_scalars&#39;]<br>
&gt;<br>
&gt; but even if I comment this line out of my script I obtain the same error as<br>
&gt; above so somehow it&#39;s not able to reference the scalar points.<br>
&gt; --------<br>
&gt; try: paraview.simple<br>
&gt; except: from paraview.simple import *<br>
&gt; paraview.simple._DisableFirstRenderCameraReset()<br>
&gt;<br>
&gt; wavelet_ = XMLImageDataReader( FileName=[&#39;/home/wavelet.vti&#39;] )<br>
&gt;<br>
&gt; wavelet_.CellArrayStatus = []<br>
&gt; wavelet_.PointArrayStatus = [&#39;volume_scalars&#39;]<br>
&gt;<br>
&gt; RenderView4 = GetRenderView()<br>
&gt; RenderView4.CameraViewUp = [0.0, 0.0, 1.0]<br>
&gt; RenderView4.CameraPosition = [-725.7466298125642, 127.5, 127.5]<br>
&gt; RenderView4.CameraFocalPoint = [127.5, 127.5, 127.5]<br>
&gt; RenderView4.CameraClippingRange = [590.9891635144385, 1185.4328292597527]<br>
&gt; RenderView4.Background = [0.0, 0.0, 0.0]<br>
&gt; RenderView4.CenterAxesVisibility = 0<br>
&gt; RenderView4.OrientationAxesVisibility = 0<br>
&gt; RenderView4.ViewSize = [800, 600]<br>
&gt;<br>
&gt; SetActiveSource(wavelet_)<br>
&gt; Threshold1 = Threshold()<br>
&gt;<br>
&gt; a1_volume_scalars_PVLookupTable = GetLookupTableForArray( &quot;volume_scalars&quot;,<br>
&gt; 1, RGBPoints=[1.9, 0.0, 1.0, 0.0, 1.95, 1.4972662149337713e-07, 1.0,<br>
&gt; 0.0014876325368879406, 2.0, 0.0, 0.996078431372549, 0.0, 2.05,<br>
&gt; 1.6337586200641548e-07, 1.0, 0.0015525676008689975, 2.1,<br>
&gt; 1.2838779441233928e-07, 1.0, 0.0013859544585118407] )<br>
&gt; a1_volume_scalars_PiecewiseFunction = CreatePiecewiseFunction()<br>
&gt; a1_volume_scalars_PiecewiseFunction.Points = [1.9, 0.1, 1.95, 0.5, 2.0, 1.0,<br>
&gt; 2.05, 0.5, 2.1, 0.1]<br>
&gt;<br>
&gt; Threshold1 = GetActiveSource()<br>
&gt; Threshold1.Scalars = [&#39;POINTS&#39;, &#39;volume_scalars&#39;]<br>
&gt; Threshold1.ThresholdRange = [1.9, 2.1]<br>
&gt;<br>
&gt; DataRepresentation2 = Show()<br>
&gt; DataRepresentation2 = GetDisplayProperties(Threshold1)<br>
&gt; DataRepresentation2.EdgeColor = [0.0, 0.0, 0.5000076295109483]<br>
&gt; DataRepresentation2.SelectMapper = &#39;Fixed point&#39;<br>
&gt; DataRepresentation2.ScalarOpacityFunction =<br>
&gt; a1_volume_scalars_PiecewiseFunction<br>
&gt; DataRepresentation2.ScalarOpacityUnitDistance = 7.74209043877865<br>
&gt; DataRepresentation2.LookupTable = a1_volume_scalars_PVLookupTable<br>
&gt; DataRepresentation2.Representation = &#39;Volume&#39;<br>
&gt; DataRepresentation2.SelectMapper = &#39;Bunyk ray cast&#39;<br>
&gt;<br>
&gt; Render()<br>
&gt;<br>
&gt; -----<br>
&gt;<br>
&gt;<br>
&gt; Jesus<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>
</div></div></div><br>