I developing a script using py fluent to automate post processing in fluent, the script captures images and extracts some data. while capturing images i want to turn of shadows reflections and grids line, which i am not able to do, I tried the following steps
I am running the script in no-GUI mode
graphics = self.solver.results.graphics
graphics.views.display_states['userDS'] ={'name': 'User_DS', 'front_faces_transparent': 'disable', 'projection': 'orthographic', 'axes': 'enable', 'ruler': 'disable', 'title': 'disable', 'boundary_marker': 'enable', 'anti_aliasing': 'disable', 'reflections': 'disable', 'static_shadows': 'disable', 'dynamic_shadows': 'disable', 'grid_plane': 'disable', 'headlights': 'on', 'lighting': 'automatic', 'view_name': 'front'}
graphics.views.display_states['User_DS'].set_state()
I confirmed that they are turned off by printing the their current state
print(graphics.views.display_states['User_DS'].is_active()) print(graphics.views.display_states['User_DS'].reflections()) print(graphics.views.display_states['User_DS'].static_shadows())
But I find these feature turned on in the image it captures