<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>hi,</div><div><br></div><div>ok, I put :</div><div><br></div><div><div>timeline = [0, 1, ... tn]</div><div>for i in range(tn):</div><div><span class="Apple-tab-span" style="white-space: pre; "> </span>self.GetExecutive().GetOutputInformation().GetInformationObject(0).Append(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS(),timeline.GetValue(i))</div></div><div><br></div><div>at the end of my programmablesource but, the Time panel (GUI,Object Istpector->Information->Time<span class="Apple-style-span" style="color: rgb(0, 128, 0); font-family: Courier; font-size: 17px; "><span class="Apple-style-span" style="color: rgb(0, 0, 0); font-family: Helvetica; font-size: medium; ">) still empty.</span></span></div><div><br></div><div>also if I run the script more than once, the TIME_STEPS variable keep growing. </div><div><br></div><div><br></div><div><br class="Apple-interchange-newline"><blockquote type="cite"><div>That's crazy :-)<br><br>You need something like this:<br><br>for i in range(x):<br>self.GetExecutive().GetOutputInformation().GetInformationObject(0).Append(vtkStreamingDemandDrivePipeline.TIME_STEPS(),<br>t[i])<br><br>in the RequestInformation() script. Then to get UPDATE_TIME_STEPS(),<br>something like:<br><br>i = self.GetExecutive().GetOutputInformation().GetInformationObject(0)<br>nSteps = i.Length(vtkStreamingDemandDrivePipeline.UPDATE_TIME_STEPS())<br>tSteps = []<br>for i in range(nSteps):<br>tSteps.append(i.Get(vtkStreamingDemandDrivePipeline.UPDATE_TIME_STEPS(), i))<br><br>Good luck!<br>-berk<br><br>On Tue, Apr 6, 2010 at 12:03 PM, Felipe Bordeu Weldt<br><<a href="mailto:felipe.bordeu@ec-nantes.fr">felipe.bordeu@ec-nantes.fr</a>> wrote:<br><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Hello,<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">I'm trying to generate data in the programmablesource with time.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">till now a can produce the data, fill the output, but I do not know how to<br></blockquote><blockquote type="cite">put the time information. (I read that I have to correctly set the<br></blockquote><blockquote type="cite">DATA_TIME_STEPS, TIME_RANGE, TIME_STEPS and the TimestepValues variables).<br></blockquote><blockquote type="cite">But I don't know how.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">And also how read the UPDATE_TIME_STEPS to generate the correct data for the<br></blockquote><blockquote type="cite">current time.<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">right know I see only the self.GetRectilinearGridOutput().DATA_TIME_STEPS()<br></blockquote><blockquote type="cite">variable, (I have to create the others ??? how and were (inputs, ouput, self<br></blockquote><blockquote type="cite">???))<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Thanks<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Felipe Bordeu<br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">_______________________________________________<br></blockquote><blockquote type="cite">Powered by <a href="http://www.kitware.com/">www.kitware.com</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Visit other Kitware open-source projects at<br></blockquote><blockquote type="cite"><a href="http://www.kitware.com/opensource/opensource.html">http://www.kitware.com/opensource/opensource.html</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Please keep messages on-topic and check the ParaView Wiki at:<br></blockquote><blockquote type="cite"><a href="http://paraview.org/Wiki/ParaView">http://paraview.org/Wiki/ParaView</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite">Follow this link to subscribe/unsubscribe:<br></blockquote><blockquote type="cite"><a href="http://www.paraview.org/mailman/listinfo/paraview">http://www.paraview.org/mailman/listinfo/paraview</a><br></blockquote><blockquote type="cite"><br></blockquote><blockquote type="cite"><br></blockquote></div></blockquote></div></body></html>