<html><div style='background-color:'><DIV class=RTE>
<P>Ok, replacing the usual brackets with "" seems to work, assuming there is no newline in the text. BUT what I understood by reading the coment "# The source modified is: vtkTemp1358" is that vtkTmp1358 was the Tcl command for the selected "source". I selected a vtkThreshold objects and, as a test, I would like to change the selected components at the middle of the animation, so I wrote:<BR> if " $globalPVTime > 0.5" " vtkTemp1358 ThresholdBetween 0 2 "<BR>and I get the following error "Object named: vtkTemp1358, could not find requested method: ThresholdBetween"<BR>What's wrong?</P></DIV>
<DIV></DIV>>From: Brad King <brad.king@kitware.com>
<DIV></DIV>>To: valdo meyer <valdo13@hotmail.com>
<DIV></DIV>>CC: ParaView Users <paraview@paraview.org>
<DIV></DIV>>Subject: Re: [Paraview] Is scripting working?
<DIV></DIV>>Date: Fri, 19 Nov 2004 13:44:25 -0500
<DIV></DIV>>
<DIV></DIV>>valdo meyer wrote:
<DIV></DIV>>>Hello,
<DIV></DIV>>>the script interface seems to be necessary beyond the point one try
<DIV></DIV>>>to make something out of the classical interface-based
<DIV></DIV>>>manipulations with Paraview. ut unfortunately there is nothing
<DIV></DIV>>>about is in the doc nor in the tutorials. So since I do know Tcl
<DIV></DIV>>>this is not really a problem, or at least I was expecting that! But
<DIV></DIV>>>actually I did not manage to have it running. Concretely:
<DIV></DIV>>> - when I write something like:
<DIV></DIV>>> if { globalPVTime > 0.5 } {
<DIV></DIV>>>as soon as I type the CR at the end of the line that the brackets
<DIV></DIV>>>are removed! although this is a correct Tcl line. And then the ">"
<DIV></DIV>>>sign is not recognized (seems that a command name is expected
<DIV></DIV>>>here). So where am I wrong?
<DIV></DIV>>
<DIV></DIV>>The command prompt is meant as a minimal interface for debugging
<DIV></DIV>>purposes. It is not a full Tcl prompt. You can work around the
<DIV></DIV>>curly issue by using quotes instead:
<DIV></DIV>>
<DIV></DIV>>if " $globalPVTime > 0.5" " .... "
<DIV></DIV>>
<DIV></DIV>>-Brad
<DIV></DIV></div></html>