I think the only way to get the name of the active source (or any source for that matter) is to search for it in the values of the dictionary returned by GetSources(). If you look at this dictionary, it has a set of keys that are a pair consisting of the name in the pipeline browser and a unique id string (in case two items in the pipeline browser have the same name). This rather obtuse expression should return the string of the name of the active source in the pipeline browser:
list(GetSources().keys())[list(GetSources().values()).index(GetActiveSource())][0] Maybe someone knows of another Python binding I am not familiar with, but this should at least solve your problem. -Ken From: ParaView [mailto:[email protected]] On Behalf Of Bob Flandard Sent: Sunday, January 8, 2017 4:37 AM To: paraview <[email protected]> Subject: [EXTERNAL] [Paraview] get name of source in pipeline gui Hi, How to get the name of the active source in the pipeline? (the gui name) gas=GetActiveSource() Then what? I've spent an hour or more on this. Thanks, Bob
_______________________________________________ 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 Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
