Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,961
    • Issues 1,961
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 99
    • Merge requests 99
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaViewParaView
  • ParaViewParaView
  • Issues
  • #18378
Closed
Open
Issue created Aug 15, 2018 by Dominik Pöltl@Yeru-314

Python: ColorBy(<handle>, None) doesn't work

Hi all, for an openFOAM case I a creating roundabout 1000 slices in a geometry. To distinguish them visually, I want to color them iteratively [red, green, blue]. In PV 5.0.1, my code worked fine: Let slice_display be the object handle, then

ColorBy(slice_display, None)
slice_display.DiffuseColor = [1.0, 0.0, 0.0]  # red

worked. But: In PV 5.4.0, the ColorBy argument None doesn't work. Even a trace doesn't show the desired line of code.

Steps to reproduce:

  1. Download minimal working example -> MWE_meshed.zip
  2. Load case into PV.
  3. Run execute_script() in MWE_colorBy_error.py
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking