Python scripting and cell selection
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Dear Kitware friends,
We have at EDF some simulation engineers scripting hardly for visualizing their data. They made some nice custom diagrams and for one of them they need to select all cells in a mesh (a result of some pre-processing) in a py file. Surprisingly they told me that the selection of the cells in a mesh can only be done interactively by using the mouse and this point forces them to, at each execution of the py, stop and manually select all the cells before continuing. This operation makes them dull and unhappy.
Their aim is to superpose some numerical labels to each cell:
_DataRepresentation.SelectionCellLabelJustification = 'Center' _DataRepresentation.SelectionCellFieldDataArrayName = self.fieldName _DataRepresentation.SelectionCellLabelVisibility = 1 _DataRepresentation.SelectionCellLabelFormat = '%.1f' _DataRepresentation.SelectionCellLabelFontSize = 9 _DataRepresentation.SelectionColor = [0.0, 0.0, 0.0] _DataRepresentation.SelectionCellLabelColor = [0.0, 0.0, 0.0]
Then MY QUESTION is: is it true that we cannot script the selection of cells? In case we cannot ... is it possible to add two methods "SelectAllCells" and "DeselectAllCells" to the representation?
Thanks for the answer,
Alejandro.