[Paraview] Problem pasting in the GUI shell

2008-12-01 Thread Louis at M-Tech
Hi Should I be able to paste a series of commands into the GUI Python shell and then get the interpreter to process those? Perhaps its an issue about eol characters? In any case, I can paste 1 line but not a series of lines like the following: import vtk pts=vtk.vtkPoints() pts.I

Re: [Paraview] Why does this programmable source not work outside the paraview GUI

2008-11-21 Thread Louis at M-Tech
.GetProperty("Script").SetElement(0, """ ... """) pgsrc.UpdateVTKObjects() Alternatively you can simply do: pgsrc.Script = """." and then you don't have to worry about calling UpdateVTKObjects(). Utkarsh Louis at M-Tech wrote: &g

[Paraview] Got programmable filter to work outside PV GUI - but still not programmable source

2008-11-21 Thread Louis at M-Tech
Hi I got programmable filter to work outside the paraview GUI - but still not the programmable source; See the example below - if you want to try out the programmable source, just set ptr = pgsrc instead of ptr = pgflt - see below. I am still puzzled why the programmable source does not wo

[Paraview] Why does this programmable source not work outside the paraview GUI

2008-11-20 Thread Louis at M-Tech
Hi All, Why does this piece of code containing a programmable source not work OUTSIDE the paraview GUI? a) When the source is changed to ConeSource() it works (see Label 1 in the code below). b) Also when the Script content is pasted inside the paraview GUI scripting editor, it does wor