Return a pipeline source based on the name that was used to register it with ParaView. Example usage:: Cone(guiName='MySuperCone') Show() Render() myCone = FindSource('MySuperCone') :param name: The name that the pipeline source was registered with during
(name)
| 53 | |
| 54 | |
| 55 | def FindSource(name): |
| 56 | """Return a pipeline source based on the name that was used to register it |
| 57 | with ParaView. |
| 58 | |
| 59 | Example usage:: |
| 60 | |
| 61 | Cone(guiName='MySuperCone') |
| 62 | Show() |
| 63 | Render() |
| 64 | myCone = FindSource('MySuperCone') |
| 65 | |
| 66 | :param name: The name that the pipeline source was registered with during |
| 67 | creation or after renaming. |
| 68 | :type name: str |
| 69 | :return: The pipeline source if found. |
| 70 | :rtype: Pipeline source proxy.""" |
| 71 | return servermanager.ProxyManager().GetProxy("sources", name) |
| 72 | |
| 73 | |
| 74 | def FindView(name): |