### 6.8.1. Scene

`class compolyx.Scene`(graph, model=None, name='', id=None, title='', view=None, parent=None, active_set=None)

Class to represent Scene

`active_set`

  Set of active entities

`background`

  Background color

`background2`

  Background color 2

`camera`

  Camera settings

`changed`

  Status boolean. Set to true if the underlying data has been changed. Write only property

`color_tables`

  Collection of color tables

`descriptions_changed`

  Set to True if descriptions should be updated.

`fit_to_window`

  Reset the zoom of the window

`foreground`

  Foreground color

`logo_type`

  Logo type: default or black

`mode`

  Current ACP mode (pre or post).

`projection`

  Projection method: 'parallel' or 'perspective'

`save_snapshot`(path, width=None, height=None, draw_background=False)

  Create a snapshot of the scene

  Parameters

  - path : File path

  - width : Width in pixels of the snapshot

  - height : Height in pixels of the snapshot

  - draw_background : Boolean whether to draw the background or not. If false, the background is white.

`scale_factor`

  Scale factor of the deformed mesh.

`serialize`()

  Serialize to Python string

`show_global_coordinate_system`

  Toggle visibility of global coordinate system marker

`show_labeled_bounding_box`

  Toggle visibility of labeled bounding box

`show_selected_mesh`

  Specifiy whether to show/highlight currently selected Elements

`show_silhouette`

  Specify whether to show the outline of currently selected elements

`show_solid_elements`

  Specifiy whether to highlight Shell or Solid Elements in Selections

`status`

  Status of the object

`title`

  Scene title

`update_direction_display_data`(entities)

  Function syncronizes the following direction plots with the added/removed entities given: - "orientations" - "ref_directions" - "fiber_directions" - "draped_fiber_directions"

`uptodate`

  Apply a view to the scene. Write only

`view`

  Apply a view to the scene. Write only

Release 18.2 - © ANSYS, Inc. All rights reserved.