CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] Access path of VTK-Reader-Files in python

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 27, 2017, 11:47
Default Access path of VTK-Reader-Files in python
  #1
New Member
 
Join Date: Jul 2017
Posts: 2
Rep Power: 0
dieg77 is on a distinguished road
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 is offline   Reply With Quote

Old   August 11, 2017, 13:44
Default
  #2
New Member
 
Join Date: Jul 2017
Posts: 2
Rep Power: 0
dieg77 is on a distinguished road
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
dieg77 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Running Parallel on Windows using Python Scripts amarkkassery SU2 Installation 6 April 4, 2013 13:37
Macro to access java files in sub-directory abraum STAR-CCM+ 3 July 11, 2012 03:46
[OpenFOAM] how to get access to ParaView Calculated Result via Python Jack_FR ParaView 0 June 5, 2012 20:25
Access to path length CEL ¿variable? jrivera CFX 3 September 28, 2011 08:08
Results saving in CFD hawk Main CFD Forum 16 July 21, 2005 21:51


All times are GMT -4. The time now is 14:27.