[Paraview] TextSource in python creates None Representation

Jacques Papper jacques.papper at gmail.com
Thu Dec 4 13:36:12 EST 2008


Hi I am running the following script - and get None printed out ... How do I
get a handle on the representation ? Am I doing something wrong ?:


========SCRIPT===========
from paraview import servermanager
servermanager.Connect()
view = servermanager.CreateRenderView()
Legend = servermanager.sources.TextSource(registrationGroup='sources',
registrationName='Legend')
Legend.Text = "Hello The World"
rep = servermanager.CreateRepresentation(Legend, view)
print rep

========OUTPUT==========
[jacques.papper at wt]$ pvpython test.py
vtkPVTextSource : [ ...........]
None
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20081204/6cb86328/attachment.htm>


More information about the ParaView mailing list