    

 ## On this page

  

 

 # Scene

 Last update: 16.07.2026 

<a id="compolyx.Scene"></a>

### *class* compolyx.Scene(graph, model=None, name='', id=None, title='', view=None, parent=None, active\_set=None)

Represents a scene.

### Attributes

NameDescription[`Scene.active_set`](compolyx.Scene.active_set.md#compolyx.Scene.active_set)Set of active entities.[`Scene.background`](compolyx.Scene.background.md#compolyx.Scene.background)Background color.[`Scene.background2`](compolyx.Scene.background2.md#compolyx.Scene.background2)Background color 2.[`Scene.camera`](compolyx.Scene.camera.md#compolyx.Scene.camera)Camera settings.[`Scene.changed`](compolyx.Scene.changed.md#compolyx.Scene.changed)Status boolean.[`Scene.continuous_pick_enabled`](compolyx.Scene.continuous_pick_enabled.md#compolyx.Scene.continuous_pick_enabled)[`Scene.deformed`](compolyx.Scene.deformed.md#compolyx.Scene.deformed)[`Scene.descriptions_changed`](compolyx.Scene.descriptions_changed.md#compolyx.Scene.descriptions_changed)Set to True if descriptions should be updated.[`Scene.display_data`](compolyx.Scene.display_data.md#compolyx.Scene.display_data)[`Scene.event_snapshot`](compolyx.Scene.event_snapshot.md#compolyx.Scene.event_snapshot)[`Scene.fit_to_window`](compolyx.Scene.fit_to_window.md#compolyx.Scene.fit_to_window)Reset the zoom of the window.[`Scene.foreground`](compolyx.Scene.foreground.md#compolyx.Scene.foreground)Foreground color.[`Scene.id`](compolyx.Scene.id.md#compolyx.Scene.id)[`Scene.is_dict_item`](compolyx.Scene.is_dict_item.md#compolyx.Scene.is_dict_item)Indicates whether the object is an item in a dictionary.[`Scene.is_list_item`](compolyx.Scene.is_list_item.md#compolyx.Scene.is_list_item)Indicates whether the object is an item of a list.[`Scene.lighting_mode`](compolyx.Scene.lighting_mode.md#compolyx.Scene.lighting_mode)[`Scene.link_path`](compolyx.Scene.link_path.md#compolyx.Scene.link_path)Root path of the current node in the tree for links to this object.[`Scene.logo_type`](compolyx.Scene.logo_type.md#compolyx.Scene.logo_type)Logo type (“default” or “black”).[`Scene.mode`](compolyx.Scene.mode.md#compolyx.Scene.mode)Current ACP mode (preprocessing).[`Scene.model`](compolyx.Scene.model.md#compolyx.Scene.model)[`Scene.name`](compolyx.Scene.name.md#compolyx.Scene.name)Name of the object.[`Scene.parent`](compolyx.Scene.parent.md#compolyx.Scene.parent)Parent object in the tree.[`Scene.projection`](compolyx.Scene.projection.md#compolyx.Scene.projection)Projection method ("parallel" or "perspective").[`Scene.root_path`](compolyx.Scene.root_path.md#compolyx.Scene.root_path)Root path of the current node in the tree.[`Scene.scale_factor`](compolyx.Scene.scale_factor.md#compolyx.Scene.scale_factor)Scale factor of the deformed mesh.[`Scene.show_contour_and_direction_in_front`](compolyx.Scene.show_contour_and_direction_in_front.md#compolyx.Scene.show_contour_and_direction_in_front)[`Scene.show_draped_fiber_directions`](compolyx.Scene.show_draped_fiber_directions.md#compolyx.Scene.show_draped_fiber_directions)[`Scene.show_draped_transverse_directions`](compolyx.Scene.show_draped_transverse_directions.md#compolyx.Scene.show_draped_transverse_directions)[`Scene.show_edges`](compolyx.Scene.show_edges.md#compolyx.Scene.show_edges)[`Scene.show_element_selection_through_mesh`](compolyx.Scene.show_element_selection_through_mesh.md#compolyx.Scene.show_element_selection_through_mesh)[`Scene.show_element_type`](compolyx.Scene.show_element_type.md#compolyx.Scene.show_element_type)Highlight "shell" or "solid" elements, or use "automatic" to select solid elements if the object belongs to a solid model.Note: Only analysis plies have solid elements.[`Scene.show_fiber_directions`](compolyx.Scene.show_fiber_directions.md#compolyx.Scene.show_fiber_directions)[`Scene.show_global_coordinate_system`](compolyx.Scene.show_global_coordinate_system.md#compolyx.Scene.show_global_coordinate_system)Toggle visibility of global coordinate system marker.[`Scene.show_labeled_bounding_box`](compolyx.Scene.show_labeled_bounding_box.md#compolyx.Scene.show_labeled_bounding_box)Toggle visibility of labeled bounding box.[`Scene.show_legend`](compolyx.Scene.show_legend.md#compolyx.Scene.show_legend)[`Scene.show_material_1_directions`](compolyx.Scene.show_material_1_directions.md#compolyx.Scene.show_material_1_directions)[`Scene.show_measure`](compolyx.Scene.show_measure.md#compolyx.Scene.show_measure)[`Scene.show_mesh_silhouette`](compolyx.Scene.show_mesh_silhouette.md#compolyx.Scene.show_mesh_silhouette)[`Scene.show_minmax`](compolyx.Scene.show_minmax.md#compolyx.Scene.show_minmax)[`Scene.show_normals`](compolyx.Scene.show_normals.md#compolyx.Scene.show_normals)[`Scene.show_orientations`](compolyx.Scene.show_orientations.md#compolyx.Scene.show_orientations)[`Scene.show_ref_directions`](compolyx.Scene.show_ref_directions.md#compolyx.Scene.show_ref_directions)[`Scene.show_section_cut_plots`](compolyx.Scene.show_section_cut_plots.md#compolyx.Scene.show_section_cut_plots)[`Scene.show_selected_mesh`](compolyx.Scene.show_selected_mesh.md#compolyx.Scene.show_selected_mesh)Indicates whether to show/highlight currently selected Elements.[`Scene.show_silhouette`](compolyx.Scene.show_silhouette.md#compolyx.Scene.show_silhouette)Whether to show the silhouette of currently selected elements.[`Scene.show_surface`](compolyx.Scene.show_surface.md#compolyx.Scene.show_surface)[`Scene.show_transverse_directions`](compolyx.Scene.show_transverse_directions.md#compolyx.Scene.show_transverse_directions)[`Scene.static_display_data`](compolyx.Scene.static_display_data.md#compolyx.Scene.static_display_data)[`Scene.static_plots`](compolyx.Scene.static_plots.md#compolyx.Scene.static_plots)[`Scene.status`](compolyx.Scene.status.md#compolyx.Scene.status)Status of the object.[`Scene.title`](compolyx.Scene.title.md#compolyx.Scene.title)Scene title.[`Scene.uptodate`](compolyx.Scene.uptodate.md#compolyx.Scene.uptodate)Apply a view to the scene.[`Scene.view`](compolyx.Scene.view.md#compolyx.Scene.view)Apply a view to the scene.### Methods

NameDescription[`Scene.connect`](compolyx.Scene.connect.md#compolyx.Scene.connect)()[`Scene.disconnect`](compolyx.Scene.disconnect.md#compolyx.Scene.disconnect)()[`Scene.find_parent`](compolyx.Scene.find_parent.md#compolyx.Scene.find_parent)(type)Steps up the tree and returns the first parent with given type.[`Scene.get_display_data_for`](compolyx.Scene.get_display_data_for.md#compolyx.Scene.get_display_data_for)(obj)[`Scene.save_snapshot`](compolyx.Scene.save_snapshot.md#compolyx.Scene.save_snapshot)(path\[, width, height, ...\])Create a snapshot of the scene.[`Scene.serialize`](compolyx.Scene.serialize.md#compolyx.Scene.serialize)()Serialize to Python string.[`Scene.update`](compolyx.Scene.update.md#compolyx.Scene.update)()[`Scene.update_direction_display_data`](compolyx.Scene.update_direction_display_data.md#compolyx.Scene.update_direction_display_data)(entities)Function synchronizes the following direction plots with the added/removed entities given: - "orientations" - "ref\_directions" - "fiber\_directions" - "draped\_fiber\_directions".[`Scene.visit`](compolyx.Scene.visit.md#compolyx.Scene.visit)(visitor)Walk through the tree and let the visitor perform action on every descendant node.