[Paraview] Rép: Fwd: Creating data in programmablesource with Time
Felipe Bordeu Weldt
felipe.bordeu at ec-nantes.fr
Wed Apr 7 03:38:06 EDT 2010
hi,
ok, I put :
timeline = [0, 1, ... tn]
for i in range(tn):
self
.GetExecutive
().GetOutputInformation
().GetInformationObject
(0
).Append
(vtk.vtkStreamingDemandDrivenPipeline.TIME_STEPS(),timeline.GetValue(i))
at the end of my programmablesource but, the Time panel (GUI,Object
Istpector->Information->Time) still empty.
also if I run the script more than once, the TIME_STEPS variable keep
growing.
> That's crazy :-)
>
> You need something like this:
>
> for i in range(x):
> self
> .GetExecutive
> ().GetOutputInformation
> ().GetInformationObject
> (0).Append(vtkStreamingDemandDrivePipeline.TIME_STEPS(),
> t[i])
>
> in the RequestInformation() script. Then to get UPDATE_TIME_STEPS(),
> something like:
>
> i = self.GetExecutive().GetOutputInformation().GetInformationObject(0)
> nSteps = i.Length(vtkStreamingDemandDrivePipeline.UPDATE_TIME_STEPS())
> tSteps = []
> for i in range(nSteps):
> tSteps
> .append(i.Get(vtkStreamingDemandDrivePipeline.UPDATE_TIME_STEPS(), i))
>
> Good luck!
> -berk
>
> On Tue, Apr 6, 2010 at 12:03 PM, Felipe Bordeu Weldt
> <felipe.bordeu at ec-nantes.fr> wrote:
>>
>>
>> Hello,
>>
>> I'm trying to generate data in the programmablesource with time.
>>
>> till now a can produce the data, fill the output, but I do not know
>> how to
>> put the time information. (I read that I have to correctly set the
>> DATA_TIME_STEPS, TIME_RANGE, TIME_STEPS and the TimestepValues
>> variables).
>> But I don't know how.
>>
>>
>> And also how read the UPDATE_TIME_STEPS to generate the correct
>> data for the
>> current time.
>>
>> right know I see only the
>> self.GetRectilinearGridOutput().DATA_TIME_STEPS()
>> variable, (I have to create the others ??? how and were (inputs,
>> ouput, self
>> ???))
>>
>> Thanks
>>
>> Felipe Bordeu
>>
>>
>>
>>
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the ParaView Wiki at:
>> http://paraview.org/Wiki/ParaView
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/mailman/listinfo/paraview
>>
>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100407/12000562/attachment.htm>
More information about the ParaView
mailing list