[Paraview] Naming pipeline items with a Python script

Paul Edwards paul.m.edwards at gmail.com
Mon Jun 8 10:31:06 EDT 2009


I've been looking into this more and noticed how Sphere is mapped to the
CreateObject function.  So I can do what I want with:

s = servermanager.source.Sphere()
servermanager.Register(s, registrationName="aDifferentName")

This works for me :)

2009/6/8 Paul Edwards <paul.m.edwards at gmail.com>

> Hi,
>
> Is it possible to change the name of an object in the pipeline with a
> python script? i.e. if I go to the Python shell and type:
>
>     s = Sphere()
>
> It will create a new object called "Sphere1".  Is there a way to set this
> name?
>
> Thanks,
> Paul
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20090608/2fca2105/attachment.htm>


More information about the ParaView mailing list