[Paraview] Rename filtered sources with Python

Magician f_magician at mac.com
Wed Jun 6 10:37:32 EDT 2012


Hi Seb,


Thanks for your advices.
I tried RenameSource.
It's easy to use, and I got good results.


Magician


On 2012/06/05, at 23:58, Sebastien Jourdain wrote:

> Here are the two way of doing that:
> 
> First set the name at the creation by doing that:
> 
>> c = Cone(guiName = "MySuperName")
> 
> Or renaming it afterward
> 
>> RenameSource( proxy = p, newName = "MySuperNewName")
> 
> Seb
> 
> On Tue, Jun 5, 2012 at 10:18 AM, Magician <f_magician at mac.com> wrote:
>> Hi all,
>> 
>> 
>> I've been trying to automate ParaView with Python for weeks.
>> Now I want to rename filter results such as "ExtractBlock1"
>> to any other names.
>> I searched documents on the web and properties of ActiveSource
>> and others, but I couldn't find how to rename them.
>> 
>> I found a tip of renaming Sphere sources, but I couldn't apply it to my cases:
>> http://www.paraview.org/pipermail/paraview/2009-June/012350.html
>> 
>> Does anyone have good ideas?
>> 
>> 
>> Magician



More information about the ParaView mailing list