[Paraview] Get the name of a dataset

Dennis Conklin dennis_conklin at goodyear.com
Fri Feb 19 10:52:28 EST 2016


Peter,

You could add a fake (point or cell) variable from the Calculator and then test for that in the Programmable Filter
Variable ->    Name:DataSetName  (=0?)

Within the filter you could search the keys for "Name:" and split out the DataSetName.

Not very clean, but doable.

If you run a python script you could access the filename, run a Calculator filter to add the variable and then call the Programmable filter to extract the name and use it.   That method should be able to be automated.

YMMV

Dennis
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/paraview/attachments/20160219/80b63fc4/attachment.html>


More information about the ParaView mailing list