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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2018, 17:25
Default python script to group/append datasets
  #1
Member
 
ufocfd
Join Date: Jun 2012
Posts: 53
Rep Power: 9
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

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 11 June 20, 2017 08:32
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 17:25.