CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [General] python script to group/append datasets (https://www.cfd-online.com/Forums/paraview/204725-python-script-group-append-datasets.html)

ufocfd July 30, 2018 17:25

python script to group/append datasets
 
I have some paraview python script to draw several boxes, eg:



box = Box(Center=[0, 0, 0],XLength=1.0,YLength=1.0,ZLength=1.0);Show()
box = Box(Center=[1, 1, 0],XLength=1.0,YLength=1.0,ZLength=1.0);Show()
box = Box(Center=[2, 2, 0],XLength=1.0,YLength=1.0,ZLength=1.0);Show()


Next I want to script the selection of all boxes and group them together (?)



This would be useful (grouping all boxes) to either change the representation to wireframe or surface, and to apply a slice to all the boxes. How do I script this, or is there another way to create a group of boxes? ...Thanks


All times are GMT -4. The time now is 00:04.