|
[Sponsors] |
[General] Python: "color by solid" doesn't work in PV 5.4.0, worked in PV 5.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
August 15, 2018, 03:05 |
Python: "color by solid" doesn't work in PV 5.4.0, worked in PV 5.0
|
#1 |
New Member
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 13 |
Dear all,
in ParaView 5.4.0, I am creating roundabout 1000 slices in a geometry by going through a loop with the index 0<i<1000. To easily visually distinguish the slices, I color them by "Solid Color" and iterate [red, green, blue] by modulo of i. I have a Python script, that worked fine in ParaView 5.0.1 - see the attached "slices_25th_all.png".slices_25th_all.png My aim: I want to color slices by "Solid Color" via a Python script. My problem: Code:
ColorBy(slice_display, None) What I tried so far: I generated a trace of my actions in the GUI - but any switch from (let's say) "vtkBlockColors" to "Solid Color" doesn't show up in the trace. Minimal working example: 1. Download MWE.zip MWE.zip 2. run blockMesh 3. run paraFoam 4. start Python shell 5. run script MWE_colorBy_error.py 6. type execute_script() This reproduces the error. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[ANSYS Meshing] Inserting file from solid work & overlap in workbench ? | tarane.d2@gmail.com | ANSYS Meshing & Geometry | 1 | May 18, 2018 13:55 |
Immersed solid, vs solid-fluid interaction to determine forces on a submerged solid | amrbekhit | CFX | 0 | January 8, 2015 17:39 |
Importing of solid work drawing | yogeshbhandari20 | ANSYS Meshing & Geometry | 0 | December 27, 2013 02:41 |
problem in exporting stl files from solid work to openfoam | reza1980 | OpenFOAM | 2 | April 25, 2013 18:37 |
Export file from solid work 2010 to ansys 13 | mazdak | CFX | 2 | February 1, 2012 18:31 |