[Paraview] executing a batch script with 3rd party reader

Jean M. Favre jfavre at cscs.ch
Fri, 23 Apr 2004 16:05:07 +0200


I use a 3rd party data reader for CFX5 which works under the 
ParaView-1-4 version. I load my data, can save sessions, reload many 
sessions. All works well, except the batch-mode scripting.

I get the following error:

ERROR: In /local/apps/ParaView/GUI/Widgets/vtkKWApplication.cxx, line 1309
vtkPVApplication (0x8130740):
     Script:
/local/apps/ParaView/bin/bucker3.pvb
     Returned Error on line 24:
       invalid command name ""

Lines 1-24 of the script is included below:
Line 24 calls on the reader variable name.
Looks like it is empty. Is there another environment setting that needs 
to be done for batch execution of 3rd part readers? I tried the same 
with the EnSight reader and did not get an error. Looks like the 
$proxyManager needs to be made aware of the 3rd part readers. I have no 
clue where to look.

Thanks for the help
====================================
# ParaView Version 1.4


#Initialization

vtkSMApplication app
app Initialize

vtkSMObject foo
set proxyManager [foo GetProxyManager]
foo Delete

set Ren1 [$proxyManager NewProxy rendering DefaultRenderer]
   [$Ren1 GetProperty BackgroundColor] SetElements3 0.33 0.35 0.43
   [$Ren1 GetProperty Size] SetElements2 830 818
   [$Ren1 GetProperty CameraPosition] SetElements3 -0.127603 -0.365359 
-0.0165491
   [$Ren1 GetProperty CameraFocalPoint] SetElements3 -0.127603 
-0.0954145 -0.0165491
   [$Ren1 GetProperty CameraViewUp] SetElements3 1 0 0
   [$Ren1 GetProperty CameraViewAngle] SetElements1 30
   [$Ren1 GetProperty CameraClippingRange] SetElements2 0.192917 0.367557
   [$Ren1 GetProperty OffScreenRendering] SetElement 0 0

set pvTemp109 [$proxyManager NewProxy sources CFX5]
   [$pvTemp109 GetProperty FileName] SetElement 0 {myfilename.trn}
======================================
-- 
Dr. Jean M. Favre,                            email:favre  at  cscs.ch
http://www.cscs.ch/about/Favre.php
CSCS, Swiss Center for Scientific Computing | Tel:  +41 (91) 610.82.40
Via Cantonale, 6928 Manno, Switzerland      | Fax:  +41 (91) 610.82.82