<div dir="ltr">Hi Rich,<div><br></div><div>Maybe the active view is not the one that has your rendering.</div><div>You may need to call SetView(<span style="font-family:arial,sans-serif;font-size:13px">RenderView2).</span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px"><br></span></div><div><font face="arial, sans-serif">Seb</font><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Oct 30, 2013 at 6:41 PM, Cook, Rich <span dir="ltr"><<a href="mailto:cook47@llnl.gov" target="_blank">cook47@llnl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">
Arrgh!
<div>I tried the following and the resulting file did not contain my isosurface as created by the below script. What am I doing wrong here? Sorry for the stream-of-consciousness posts here… </div>
<div><br>
</div>
<div>
<div style="margin:0px"><span style="font-family:Courier;font-size:13pt">>>> exporters=servermanager.createModule("exporters")</span></div>
<div style="margin:0px;font-family:Courier;font-size:13pt"><br>
</div>
<div style="margin:0px"><span style="font-family:Courier;font-size:13pt">>>> x3dExporter=exporters.X3DExporter(FileName="test.x3d")</span></div>
<div style="margin:0px"><span style="font-family:Courier;font-size:13pt">>>> view = GetActiveView()</span></div>
<div style="margin:0px;font-family:Courier;font-size:13pt"><br>
</div>
<div style="margin:0px"><span style="font-family:Courier;font-size:13pt">>>> x3dExporter.SetView(view) # <===== NEW LINE</span></div>
<div style="margin:0px;font-family:Courier;font-size:13pt"><br>
</div>
<div style="margin:0px"><span style="font-family:Courier;font-size:13pt">>>> x3dExporter.Write()</span></div>
<div style="margin:0px;font-family:Courier;font-size:13pt"><br>
</div>
<div style="margin:0px;font-family:Courier;font-size:13pt"><br>
</div>
<div>
<div>On Oct 30, 2013, at 5:14 PM, "Cook, Rich" <<a href="mailto:cook47@llnl.gov" target="_blank">cook47@llnl.gov</a>></div><div><div class="h5">
<div> wrote:</div>
<br>
<blockquote type="cite">
<div style="word-wrap:break-word">
… and immediately got the answer from google: <a href="http://www.paraview.org/pipermail/paraview/2012-May/024921.html" target="_blank">http://www.paraview.org/pipermail/paraview/2012-May/024921.html</a>
<div><br>
</div>
<div>However, I'm still curious as to how the person in question discovered how to do it. Where is all the good python documentation/lore stored? The wiki wasn't too helpful to me in that respect, i.e., as a reference, although it has a lot of good ideas/information.
</div>
<div><br>
</div>
<div>-- Rich </div>
<div><br>
<div>
<div>On Oct 30, 2013, at 5:05 PM, "Cook, Rich" <<a href="mailto:cook47@llnl.gov" target="_blank">cook47@llnl.gov</a>></div>
<div> wrote:</div>
<br>
<blockquote type="cite">
<div style="word-wrap:break-word">
I recorded a script to try to understand how to export a time series of an isosurface as .x3d files so I can muck with them using blender. But when I look at the script, the crucial bit of exporting the .x3d did not get captured. Is that part not scriptable?
How can I go about finding out for myself which file formats can be exported from python scripts, if any?
<div>Thanks</div>
<div><br>
</div>
<div>Here is the script that got captured: </div>
<div><br>
</div>
<div>
<div style="margin:0px">try: paraview.simple</div>
<div style="margin:0px">except: from paraview.simple import *</div>
<div style="margin:0px">paraview.simple._DisableFirstRenderCameraReset()</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">plot_raw = VisItMirandaReader( FileName='/nfs/tmp2/rcook/miranda/IRM_512_r1/plot.raw' )</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">AnimationScene2 = GetAnimationScene()</div>
<div style="margin:0px">AnimationScene1 = GetAnimationScene()</div>
<div style="margin:0px">plot_raw.CellArrays = []</div>
<div style="margin:0px">plot_raw.Materials = []</div>
<div style="margin:0px">plot_raw.Meshes = ['mesh']</div>
<div style="margin:0px">plot_raw.PointArrays = []</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">AnimationScene2.EndTime = 110.0</div>
<div style="margin:0px">AnimationScene2.PlayMode = 'Snap To TimeSteps'</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">AnimationScene1.EndTime = 110.0</div>
<div style="margin:0px">AnimationScene1.PlayMode = 'Snap To TimeSteps'</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">RenderView2 = GetRenderView()</div>
<div style="margin:0px">DataRepresentation4 = Show()</div>
<div style="margin:0px">DataRepresentation4.Representation = 'Outline'</div>
<div style="margin:0px">DataRepresentation4.ScaleFactor = 51.200000000000003</div>
<div style="margin:0px">DataRepresentation4.EdgeColor = [0.0, 0.0, 0.50000762951094835]</div>
<div style="margin:0px">DataRepresentation4.SelectionCellFieldDataArrayName = 'density'</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">plot_raw.CellArrays = ['density']</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">CellDatatoPointData2 = CellDatatoPointData()</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">RenderView2.CameraFocalPoint = [255.5, 255.5, -0.5]</div>
<div style="margin:0px">RenderView2.CameraClippingRange = [829.67380753909174, 2829.4767488865327]</div>
<div style="margin:0px">RenderView2.CameraPosition = [-979.92119013571846, 1113.4340644820502, -820.67547187352602]</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">DataRepresentation5 = Show()</div>
<div style="margin:0px">DataRepresentation5.EdgeColor = [0.0, 0.0, 0.50000762951094835]</div>
<div style="margin:0px">DataRepresentation5.SelectionPointFieldDataArrayName = 'density'</div>
<div style="margin:0px">DataRepresentation5.SelectionCellFieldDataArrayName = 'density'</div>
<div style="margin:0px">DataRepresentation5.Representation = 'Outline'</div>
<div style="margin:0px">DataRepresentation5.ScaleFactor = 51.200000000000003</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">DataRepresentation4.Visibility = 0</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">Contour2 = Contour( PointMergeMethod="Uniform Binning" )</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">Contour2.PointMergeMethod = "Uniform Binning"</div>
<div style="margin:0px">Contour2.ContourBy = ['POINTS', 'density']</div>
<div style="margin:0px">Contour2.Isosurfaces = [2.0]</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">DataRepresentation6 = Show()</div>
<div style="margin:0px">DataRepresentation6.ScaleFactor = 51.200000000000003</div>
<div style="margin:0px">DataRepresentation6.EdgeColor = [0.0, 0.0, 0.50000762951094835]</div>
<div style="margin:0px">DataRepresentation6.SelectionPointFieldDataArrayName = 'Normals'</div>
<div style="margin:0px">DataRepresentation6.SelectionCellFieldDataArrayName = 'density'</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">AnimationScene2.AnimationTime = 10.0</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">RenderView2.CameraViewUp = [-0.80853642549145055, -0.58010037415785698, 0.098754263479722132]</div>
<div style="margin:0px">RenderView2.CacheKey = 10.0</div>
<div style="margin:0px">RenderView2.CameraPosition = [402.40688029765732, -227.93136313665994, -1637.4840153022406]</div>
<div style="margin:0px">RenderView2.CameraClippingRange = [1504.1196765479444, 1981.483268233957]</div>
<div style="margin:0px">RenderView2.ViewTime = 10.0</div>
<div style="margin:0px">RenderView2.RemoteRenderThreshold = 2.0</div>
<div style="margin:0px">RenderView2.UseCache = 0</div>
<div style="margin:0px">RenderView2.CameraFocalPoint = [255.5, 255.49999999999989, -0.49999999999999883]</div>
<div style="margin:0px"><br>
</div>
<div style="margin:0px">Render()</div>
<div style="margin:0px"><br>
</div>
<div><span style="border-collapse:separate;font-size:13px;border-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div>-- </div>
<div>✐Richard Cook </div>
<div>✇ Lawrence Livermore National Laboratory</div>
<div>Bldg-453 Rm-4024, Mail Stop L-557 </div>
<div>7000 East Avenue, Livermore, CA, 94550, USA</div>
<div>☎ (office) <a href="tel:%28925%29%20423-9605" value="+19254239605" target="_blank">(925) 423-9605</a> </div>
<div>☎ (fax) <a href="tel:%28925%29%20423-6961" value="+19254236961" target="_blank">(925) 423-6961</a></div>
<div>---</div>
<div>Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div>(opinions expressed herein are mine and not those of LLNL)</div>
<br>
</span></span></span></span></span></span></span><br>
</span></div>
<br>
</div>
</div>
</blockquote>
</div>
<br>
<div><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><span style="border-collapse:separate;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;border-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px"><span style="border-collapse:separate;border-spacing:0px;font-family:Monaco;font-size:13px;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px">
<div>-- </div>
<div>✐Richard Cook </div>
<div>✇ Lawrence Livermore National Laboratory</div>
<div>Bldg-453 Rm-4024, Mail Stop L-557 </div>
<div>7000 East Avenue, Livermore, CA, 94550, USA</div>
<div>☎ (office) <a href="tel:%28925%29%20423-9605" value="+19254239605" target="_blank">(925) 423-9605</a> </div>
<div>☎ (fax) <a href="tel:%28925%29%20423-6961" value="+19254236961" target="_blank">(925) 423-6961</a></div>
<div>---</div>
<div>Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div>(opinions expressed herein are mine and not those of LLNL)</div>
<br>
</span></span></span></span></span></span></span><br>
</span></div>
<br>
</div>
</div>
</blockquote>
</div></div></div><div><div class="h5">
<br>
<div><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;text-align:auto;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:13px;white-space:normal;font-family:Monaco;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:13px;white-space:normal;font-family:Monaco;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:13px;white-space:normal;font-family:Monaco;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:13px;white-space:normal;font-family:Monaco;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:13px;white-space:normal;font-family:Monaco;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:13px;white-space:normal;font-family:Monaco;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:13px;white-space:normal;font-family:Monaco;word-spacing:0px"><span style="text-indent:0px;letter-spacing:normal;font-variant:normal;font-style:normal;font-weight:normal;line-height:normal;border-collapse:separate;text-transform:none;font-size:13px;white-space:normal;font-family:Monaco;word-spacing:0px">
<div>-- </div>
<div>✐Richard Cook </div>
<div>✇ Lawrence Livermore National Laboratory</div>
<div>Bldg-453 Rm-4024, Mail Stop L-557 </div>
<div>7000 East Avenue, Livermore, CA, 94550, USA</div>
<div>☎ (office) <a href="tel:%28925%29%20423-9605" value="+19254239605" target="_blank">(925) 423-9605</a> </div>
<div>☎ (fax) <a href="tel:%28925%29%20423-6961" value="+19254236961" target="_blank">(925) 423-6961</a></div>
<div>---</div>
<div>Information Management & Graphics Grp., Services & Development Div., Integrated Computing & Communications Dept.</div>
<div>(opinions expressed herein are mine and not those of LLNL)</div>
<br>
</span></span></span></span></span></span></span><br>
</span></div>
<br>
</div></div></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>