CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[General] python script to group/append datasets

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2018, 17:25
Default python script to group/append datasets
  #1
Senior Member
 
Giles Richardson
Join Date: Jun 2012
Location: Cambs UK
Posts: 102
Rep Power: 14
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

Reply

Tags
append, group, python, script, sources


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 04:30
python script to create geometry for salome, and then mesh 6863523 Mesh Generation & Pre-Processing 4 March 18, 2017 10:00
[General] How can I use python script to generate animation from 2000 frames of vtk datasets LieyuShi ParaView 3 March 10, 2016 14:37
[General] Python script: Auto-scale color scale julien.decharentenay ParaView 2 December 9, 2013 06:39
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 10:36


All times are GMT -4. The time now is 14:58.