<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; font-size: 14px; font-family: Calibri, sans-serif;"><div style="color: rgb(0, 0, 0);">Hello,</div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">I am trying to set up some python helpers for working with line plots, and I am running into trouble.</div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">I have the following code to setup a probe location, and then plot over time:</div><div style="color: rgb(0, 0, 0);"><br></div><div><div style="color: rgb(0, 0, 0);">mainView = GetActiveView()</div><div style="color: rgb(0, 0, 0);"><br></div><div><font color="#1f497d">DensityChart = CreateXYPlotView()</font></div><div><font color="#1f497d">DensityChart.AxisLabelFont = ['Times', '10', '0', '0', 'Times', '10', '0', '0', 'Times', '10', '0', '0', 'Times', '10', '0', '0']</font></div><div><font color="#1f497d">DensityChart.AxisTitleFont = ['Times', '11', '0', '0', 'Times', '11', '0', '0', 'Times', '11', '0', '0', 'Times', '11', '0', '0']</font></div><div><font color="#1f497d">DensityChart.AxisTitle = ['Density $(N/cm^3)$', 'Modified Julian Date','','']</font></div><div><font color="#1f497d">DensityChart.ChartTitle = 'Density at 1 AU (ACE) $(N/cm^3)$'</font></div><div><font color="#1f497d">DensityChart.ChartTitleFont = ['Times', '14', '0', '0']</font></div><div><font color="#1f497d"><br></font></div><div><font color="#1f497d">#Probe the Location at 1AU</font></div><div><font color="#1f497d">SetActiveView(mainView)</font></div><div><font color="#1f497d">SetActiveSource(InputFile)</font></div><div><font color="#1f497d">Probe1AU = ProbeLocation(ProbeType="Fixed Radius Point Source")</font></div><div><font color="#1f497d">Probe1AU.ProbeType.Center = [1.0, 0.0, 0.0]</font></div><div><font color="#1f497d">Probe1AURep = Show()</font></div><div><font color="#1f497d">Probe1AURep.Visibility = 0</font></div><div><font color="#1f497d"><br></font></div><div><font color="#1f497d">SetActiveView(DensityChart)</font></div><div><font color="#1f497d">SetActiveSource(Probe1AU)</font></div><div><font color="#1f497d">Plot1AU = PlotSelectionOverTime()</font></div><div><font color="#1f497d">Selection1AU = IDSelectionSource( ContainingCells=0, InsideOut=0, FieldType='POINT', IDs=[-1L, 0L] )</font></div><div><font color="#1f497d">Plot1AU.Selection = Selection1AU</font></div><div><font color="#1f497d"><br></font></div><div><font color="#1f497d">Plot1AURep = Show()</font></div><div><br></div></div><div>I now want to select a series to plot. After looking though some of the python code in ParaView, and looking at sites online, I came up with this method of getting a list of series so I can set them on/off and set their colors, etc:</div><div><br></div><div><div><font color="#1f497d">repView = GetActiveView()</font></div><div><font color="#1f497d">rep = repView.Representations[0]</font></div><div><font color="#1f497d">availableProps = rep.ListProperties()</font></div><div><font color="#1f497d">prop = rep.GetProperty("SeriesNamesInfo")</font></div><div><font color="#1f497d">print prop</font></div></div><div><br></div><div>If I do this from the the Python Shell after the first scrip above runs, it works great, and I get a list of all of the Series.</div><div><br></div><div>However, if I add this into the script, and then run, I always get <font color="#1f497d">prop == None</font></div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">I am obviously doing something wrong, and I have a sneaky suspicion it has something to do with fetching data from the server manager, but I am at a loss on how to get this work.</div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">Could someone please point me in the correct direction?</div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">I am using ParaView 4.0.1 for Mac.</div><div style="color: rgb(0, 0, 0);"><br></div><div style="color: rgb(0, 0, 0);">Thanks,</div><div style="color: rgb(0, 0, 0);">Josh</div><div style="color: rgb(0, 0, 0);"><br></div></body></html>