[Paraview] Naming pipeline items with a Python script

Berk Geveci berk.geveci at kitware.com
Tue Jun 16 12:02:45 EDT 2009


It would be pretty easy to add a function to rename a proxy more
directly. Feel free to submit a feature request for 3.8.

-berk

On Mon, Jun 8, 2009 at 10:31 AM, Paul Edwards<paul.m.edwards at gmail.com> wrote:
> 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
>>
>>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
>
>


More information about the ParaView mailing list