[Paraview] Annotate time as data/time using pythonannotation and programmablefilter

Utkarsh Ayachit utkarsh.ayachit at kitware.com
Tue Jun 6 11:05:10 EDT 2017


>
> Array Association: Row Data
> Expression: "{}".format(input.RowData)
> But this gives me just a reference to the row data, not the string of the
> date/time I just stored
>

Try using `input.RowData["datatime"].GetValue(0)` instead. String arrays
are a little cumbersome currently. You have to use the vtkAbstractArray API
(GetValue) to access elements.

Utkarsh
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20170606/37bb04e3/attachment.html>


More information about the ParaView mailing list