CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] Access path of VTK-Reader-Files in python (https://www.cfd-online.com/Forums/paraview/190977-access-path-vtk-reader-files-python.html)

dieg77 July 27, 2017 10:47

Access path of VTK-Reader-Files in python
 
Hi,

unfortunately i had a faulty harddrive and lost all my paraview macros.

I know it is possible to access the path of the vktfiles, which are imported in paraview for a specific source.

In other words if you import a vtk-file-series and click on the information tab you can find the path of the files.

I cant recall the command to access this path in python in paraview.

By any chance someone knows the pythonline i am looking for?

Max

dieg77 August 11, 2017 12:44

Hi,

just for all people who experience the same problem as i did.

The python command to acces the file path of an active vtk source is
"path_long = GetActiveSource().GetPropertyValue('FileNameInfo') "

Cheers,
Max


All times are GMT -4. The time now is 12:15.