CFD Online Logo CFD Online URL
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] python script to group/append datasets

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2018, 16:25
Default python script to group/append datasets
Senior Member
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 102
Rep Power: 13
ufocfd is on a distinguished road
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
ufocfd is offline   Reply With Quote


append, group, python, script, sources

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM] Using python script for automatic post processing of openFoam vPaquet ParaView 12 December 16, 2021 03:30
python script to create geometry for salome, and then mesh 6863523 Mesh Generation & Pre-Processing 4 March 18, 2017 09:00
[General] How can I use python script to generate animation from 2000 frames of vtk datasets LieyuShi ParaView 3 March 10, 2016 13:37
[General] Python script: Auto-scale color scale julien.decharentenay ParaView 2 December 9, 2013 05:39
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36

All times are GMT -4. The time now is 07:38.