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

[General] Python: "color by solid" doesn't work in PV 5.4.0, worked in PV 5.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 15, 2018, 02:05
Default 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: 12
Yeru is on a distinguished road
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)
does give errors in PV 5.4.0 (but it worked in PV 5.0.1).
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.
Yeru is offline   Reply With Quote

Reply


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
[ANSYS Meshing] Inserting file from solid work & overlap in workbench ? tarane.d2@gmail.com ANSYS Meshing & Geometry 1 May 18, 2018 12:55
Immersed solid, vs solid-fluid interaction to determine forces on a submerged solid amrbekhit CFX 0 January 8, 2015 16:39
Importing of solid work drawing yogeshbhandari20 ANSYS Meshing & Geometry 0 December 27, 2013 01:41
problem in exporting stl files from solid work to openfoam reza1980 OpenFOAM 2 April 25, 2013 17:37
Export file from solid work 2010 to ansys 13 mazdak CFX 2 February 1, 2012 17:31


All times are GMT -4. The time now is 16:06.