MantisBT - ParaView
View Issue Details
0009172ParaViewFeaturepublic2009-06-17 04:542012-02-08 17:27
Paul Edwards 
Utkarsh Ayachit 
normalfeatureN/A
closedno change required 
Development 
NeedsVerification3.12 
0009172: Name pipeline object with a python script
I would like to change the name of an object in the pipeline with a python script? Currently if I go to the Python shell and type:

    s = Sphere()

It will create a new object called "Sphere1". I would like to be able to rename this (or create it with a different name).



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")

Still, it would still be nice to add this as an option to the CreateObject function.
No tags attached.
Issue History
2009-06-17 04:54Paul EdwardsNew Issue
2009-06-23 12:40Berk GeveciStatusbacklog => tabled
2009-06-23 12:40Berk GeveciAssigned To => Berk Geveci
2011-01-28 13:56Utkarsh AyachitAssigned ToBerk Geveci => Utkarsh Ayachit
2011-01-28 13:56Utkarsh AyachitTarget Version => NeedsVerification
2011-06-16 13:10Zack GalbreathCategoryFeature Request => Feature
2011-08-24 09:20Utkarsh AyachitNote Added: 0027419
2011-08-24 09:20Utkarsh AyachitStatusbacklog => gatekeeper review
2011-08-24 09:20Utkarsh AyachitFixed in Version => 3.12
2011-08-24 09:20Utkarsh AyachitResolutionopen => no change required
2011-08-24 09:21Utkarsh AyachitStatusgatekeeper review => customer review
2012-02-08 17:27Utkarsh AyachitStatuscustomer review => closed
2012-02-08 17:27Utkarsh AyachitNote Added: 0028218

Notes
(0027419)
Utkarsh Ayachit   
2011-08-24 09:20   
This is supported. Try using the following:

>>> Sphere(registrationName="MySphere")
(0028218)
Utkarsh Ayachit   
2012-02-08 17:27   
Closing bugs sitting in "customer review" for a long time.