SketchUp C API
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Related Functions
SUSceneRef Struct Reference

Used to get and set a scene's camera views, using the SUCameraRef object. More...

#include <SketchUpAPI/model/scene.h>

Inherits SUEntityRef.

Related Functions

(Note that these are not member functions.)

SUEntityRef SUSceneToEntity (SUSceneRef scene)
 Converts from an SUSceneRef to an SUEntityRef. This is essentially an upcast operation. More...
 
SUSceneRef SUSceneFromEntity (SUEntityRef entity)
 Converts from an SUEntityRef to an SUSceneRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SUSceneRef. More...
 
enum SUResult SUSceneCreate (SUSceneRef *scene)
 Creates an empty scene object. More...
 
enum SUResult SUSceneRelease (SUSceneRef *scene)
 Releases a scene object. More...
 
enum SUResult SUSceneGetUseCamera (SUSceneRef scene, bool *use_camera)
 Retrieves the "use camera" setting of a scene object. More...
 
enum SUResult SUSceneSetUseCamera (SUSceneRef scene, bool use_camera)
 Sets the "use camera" setting of a scene object. More...
 
enum SUResult SUSceneGetCamera (SUSceneRef scene, SUCameraRef *camera)
 Retrieves the camera of a scene object. The returned camera object points to scene's internal camera. So the camera must not be released via SUCameraRelease(). More...
 
enum SUResult SUSceneSetCamera (SUSceneRef scene, SUCameraRef camera)
 Sets a given scene's camera object. The scene does not take ownership of the provided camera, it just copies the properties to the scene's owned camera. If the input camera was created using SUCameraCreate() it must be released using SUCameraRelease(). More...
 
enum SUResult SUSceneGetIncludeInAnimation (SUSceneRef scene, bool *include_in_animation)
 Retrieves the "include in animation" setting of a scene object. More...
 
enum SUResult SUSceneSetIncludeInAnimation (SUSceneRef scene, bool include_in_animation)
 Sets the "include in animation" setting of a scene object. More...
 
enum SUResult SUSceneGetName (SUSceneRef scene, SUStringRef *name)
 Retrieves the name of a scene object. More...
 
enum SUResult SUSceneSetName (SUSceneRef scene, const char *scene_name)
 Sets the name of a scene object. More...
 
enum SUResult SUSceneGetRenderingOptions (SUSceneRef scene, SURenderingOptionsRef *options)
 Retrieves the rendering options for the scene object. More...
 
enum SUResult SUSceneGetShadowInfo (SUSceneRef scene, SUShadowInfoRef *shadow_info)
 Retrieves the shadow info of a scene. More...
 
enum SUResult SUSceneGetUseShadowInfo (SUSceneRef scene, bool *use_shadow_info)
 Retrieves the "use shadow info" setting of a scene object. More...
 
enum SUResult SUSceneSetUseShadowInfo (SUSceneRef scene, bool use_shadow_info)
 Sets the "use shadow info" setting of a scene object. More...
 
enum SUResult SUSceneGetUseRenderingOptions (SUSceneRef scene, bool *use_rendering_options)
 Retrieves the "use rendering options" setting of a scene object. More...
 
enum SUResult SUSceneSetUseRenderingOptions (SUSceneRef scene, bool use_rendering_options)
 Sets the "use rendering options" setting of a scene object. More...
 
enum SUResult SUSceneGetUseHidden (SUSceneRef scene, bool *use_hidden)
 Gets whether the scene uses the hidden properties of entities. More...
 
enum SUResult SUSceneSetUseHidden (SUSceneRef scene, bool use_hidden)
 Sets whether the scene uses the hidden properties of entities. More...
 
enum SUResult SUSceneGetUseHiddenGeometry (SUSceneRef scene, bool *use_hidden)
 Gets whether the scene uses the hidden geometry properties of root-level entities. More...
 
enum SUResult SUSceneSetUseHiddenGeometry (SUSceneRef scene, bool use_hidden)
 Sets whether the scene uses the hidden properties of root-level entities. More...
 
enum SUResult SUSceneGetUseHiddenObjects (SUSceneRef scene, bool *use_hidden)
 Gets whether the scene uses the hidden properties of objects. More...
 
enum SUResult SUSceneSetUseHiddenObjects (SUSceneRef scene, bool use_hidden)
 Sets whether the scene uses the hidden properties of objects. More...
 
enum SUResult SUSceneGetUseHiddenLayers (SUSceneRef scene, bool *use_hidden_layers)
 Retrieves the "use hidden layers" setting of a scene object. More...
 
enum SUResult SUSceneSetUseHiddenLayers (SUSceneRef scene, bool use_hidden_layers)
 Sets the "use hidden layers" setting of a scene object. More...
 
enum SUResult SUSceneGetUseSectionPlanes (SUSceneRef scene, bool *use_section_planes)
 Gets whether the scene uses section planes. More...
 
enum SUResult SUSceneSetUseSectionPlanes (SUSceneRef scene, bool use_section_planes)
 Sets whether the scene uses section planes. More...
 
enum SUResult SUSceneGetNumLayers (SUSceneRef scene, size_t *count)
 Retrieves the number of layers in the scene object. More...
 
enum SUResult SUSceneGetLayers (SUSceneRef scene, size_t len, SULayerRef layers[], size_t *count)
 Retrieves the layers in the scene object. More...
 
enum SUResult SUSceneAddLayer (SUSceneRef scene, SULayerRef layer)
 Adds the specified layer to the provided scene. More...
 
enum SUResult SUSceneRemoveLayer (SUSceneRef scene, SULayerRef layer)
 Removes the specified layer from the provided scene. More...
 
enum SUResult SUSceneClearLayers (SUSceneRef scene)
 Removes all of the layers from the provided scene. Scenes do not own their layers so removing them does not release them. More...
 
enum SUResult SUSceneGetNumLayerFolders (SUSceneRef scene, size_t *count)
 Retrieves the number of layer folders in the scene object. More...
 
enum SUResult SUSceneGetLayerFolders (SUSceneRef scene, size_t len, SULayerFolderRef layer_folders[], size_t *count)
 Retrieves the layer folders in the scene object. More...
 
enum SUResult SUSceneAddLayerFolder (SUSceneRef scene, SULayerFolderRef layer_folder)
 Adds the specified layer folder to the provided scene. More...
 
enum SUResult SUSceneRemoveLayerFolder (SUSceneRef scene, SULayerFolderRef layer_folder)
 Removes the specified layer folder from the provided scene. More...
 
enum SUResult SUSceneClearLayerFolders (SUSceneRef scene)
 Removes all of the layer folders from the provided scene. Scenes do not own their layer folders so removing them does not release them. More...
 
enum SUResult SUSceneGetAxes (SUSceneRef scene, SUAxesRef *axes)
 Retrieves the axes of a scene object. More...
 
enum SUResult SUSceneSetUseAxes (SUSceneRef scene, bool use_axes)
 Sets the "use axes" setting of a scene object. More...
 
enum SUResult SUSceneGetUseAxes (SUSceneRef scene, bool *use_axes)
 Retrieves the "use axes" setting of a scene object. More...
 
enum SUResult SUSceneGetNumHiddenEntities (SUSceneRef scene, size_t *count)
 Retrieves the number of hidden entities in the scene object. More...
 
enum SUResult SUSceneGetHiddenEntities (SUSceneRef scene, size_t len, SUEntityRef entities[], size_t *count)
 Retrieves the hidden entities in the scene object. More...
 
enum SUResult SUSceneSetFlags (SUSceneRef scene, uint32_t flags)
 Sets the flags for a scene object. More...
 
enum SUResult SUSceneGetFlags (SUSceneRef scene, uint32_t *flags)
 Retrieves the flags in the scene object. More...
 
enum SUResult SUSceneSetSketchAxesDisplayed (SUSceneRef scene, bool displayed)
 Sets the "sketch axes displayed" setting of a scene object. More...
 
enum SUResult SUSceneGetSketchAxesDisplayed (SUSceneRef scene, bool *displayed)
 Retrieves the "sketch axes displayed" setting of a scene object. More...
 
enum SUResult SUSceneGetPhotoMatchImageDisplayed (SUSceneRef scene, bool *displayed)
 Retrieves the "photo matched image displayed" setting of a scene object. More...
 
enum SUResult SUSceneClearPhotoMatchImage (SUSceneRef scene)
 Clears the provided scene's photo match image. More...
 
enum SUResult SUSceneGetStyle (SUSceneRef scene, SUStyleRef *style)
 Retrieves the scene's style. More...
 
enum SUResult SUSceneCopy (SUSceneRef scene, SUSceneRef copy_scene)
 Copies the data from copy_scene to scene. More...
 
enum SUResult SUSceneActivate (SUSceneRef scene)
 Activates the provided scene. More...
 
enum SUResult SUSceneSetDrawingElementHidden (SUSceneRef scene, SUDrawingElementRef drawing_element, bool is_hidden)
 Set the visibility of a drawing element in a scene. More...
 
enum SUResult SUSceneGetDrawingElementHidden (SUSceneRef scene, SUDrawingElementRef drawing_element, bool *is_hidden)
 Get the visibility of a drawing element in a scene. More...
 

Detailed Description

Used to get and set a scene's camera views, using the SUCameraRef object.

Friends And Related Function Documentation

enum SUResult SUSceneActivate ( SUSceneRef  scene)
related

Activates the provided scene.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
Returns
enum SUResult SUSceneAddLayer ( SUSceneRef  scene,
SULayerRef  layer 
)
related

Adds the specified layer to the provided scene.

   Adding a layer to a scene will flag the layer to be the opposite of its
   default scene visibility. See \ref SULayerVisibilityDefaultType. This
   function does not take ownership of the specified layer.
Note
Prior to SketchUp 2020.0, API 8.0 this function did not return SU_ERROR_INVALID_ARGUMENT.
Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[in]layerThe new layer to be added to the scene.
Returns
enum SUResult SUSceneAddLayerFolder ( SUSceneRef  scene,
SULayerFolderRef  layer_folder 
)
related

Adds the specified layer folder to the provided scene.

   Adding a layer folder to a scene will cause that layer folder to be
   flagged as HIDDEN for the specified scene. Any layers or layer folders
   within that layer folder will also be hidden, and therefore don't need to
   be added to the scene. This function does not take ownership of the
   specified layer folder.
Since
SketchUp 2021.0, API 9.0
Parameters
[in]sceneThe scene object.
[in]layer_folderThe new layer folder to be added to scene.
Returns
enum SUResult SUSceneClearLayerFolders ( SUSceneRef  scene)
related

Removes all of the layer folders from the provided scene. Scenes do not own their layer folders so removing them does not release them.

Since
SketchUp 2021.0, API 9.0
Parameters
[in]sceneThe scene object.
Returns
enum SUResult SUSceneClearLayers ( SUSceneRef  scene)
related

Removes all of the layers from the provided scene. Scenes do not own their layers so removing them does not release them.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
Returns
enum SUResult SUSceneClearPhotoMatchImage ( SUSceneRef  scene)
related

Clears the provided scene's photo match image.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
Returns
enum SUResult SUSceneCopy ( SUSceneRef  scene,
SUSceneRef  copy_scene 
)
related

Copies the data from copy_scene to scene.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object to be altered.
[in]copy_sceneThe scene to be copied.
Returns
enum SUResult SUSceneCreate ( SUSceneRef scene)
related

Creates an empty scene object.

Parameters
[out]sceneThe scene object created.
Returns
SUSceneRef SUSceneFromEntity ( SUEntityRef  entity)
related

Converts from an SUEntityRef to an SUSceneRef. This is essentially a downcast operation so the given SUEntityRef must be convertible to an SUSceneRef.

Parameters
[in]entityThe entity reference.
Returns
  • The converted SUSceneRef if the downcast operation succeeds. If not, the returned reference will be invalid.
enum SUResult SUSceneGetAxes ( SUSceneRef  scene,
SUAxesRef axes 
)
related

Retrieves the axes of a scene object.

Parameters
[in]sceneThe scene object.
[out]axesThe axes object retrieved.
Returns
enum SUResult SUSceneGetCamera ( SUSceneRef  scene,
SUCameraRef camera 
)
related

Retrieves the camera of a scene object. The returned camera object points to scene's internal camera. So the camera must not be released via SUCameraRelease().

Parameters
[in]sceneThe scene object.
[out]cameraThe camera object retrieved.
Returns
enum SUResult SUSceneGetDrawingElementHidden ( SUSceneRef  scene,
SUDrawingElementRef  drawing_element,
bool *  is_hidden 
)
related

Get the visibility of a drawing element in a scene.

Since
SketchUp 2020, API 8.0
Parameters
[in]sceneThe scene object.
[in]drawing_elementThe drawing element object.
[out]is_hiddenThe current setting for whether or not the drawing element is hidden in the scene.
Returns
enum SUResult SUSceneGetFlags ( SUSceneRef  scene,
uint32_t *  flags 
)
related

Retrieves the flags in the scene object.

See Scene Flags for available flags that can be combined bitwise.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[out]flagsThe flags.
Returns
enum SUResult SUSceneGetHiddenEntities ( SUSceneRef  scene,
size_t  len,
SUEntityRef  entities[],
size_t *  count 
)
related

Retrieves the hidden entities in the scene object.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe entities object.
[in]lenThe number of hidden entities to retrieve.
[out]entitiesThe hidden entities retrieved.
[out]countThe number of hidden entities retrieved.
Returns
enum SUResult SUSceneGetIncludeInAnimation ( SUSceneRef  scene,
bool *  include_in_animation 
)
related

Retrieves the "include in animation" setting of a scene object.

Since
SketchUp 2018, API 6.0
Parameters
[in]sceneThe scene object.
[out]include_in_animationThe current setting for whether or not to include in animation.
Returns
enum SUResult SUSceneGetLayerFolders ( SUSceneRef  scene,
size_t  len,
SULayerFolderRef  layer_folders[],
size_t *  count 
)
related

Retrieves the layer folders in the scene object.

Since
SketchUp 2021.0, API 9.0
Parameters
[in]sceneThe entities object.
[in]lenThe number of layer_folders to retrieve.
[out]layer_foldersThe layer_folders retrieved.
[out]countThe number of layer_folders retrieved.
Returns
enum SUResult SUSceneGetLayers ( SUSceneRef  scene,
size_t  len,
SULayerRef  layers[],
size_t *  count 
)
related

Retrieves the layers in the scene object.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe entities object.
[in]lenThe number of layers to retrieve.
[out]layersThe layers retrieved.
[out]countThe number of layers retrieved.
Returns
enum SUResult SUSceneGetName ( SUSceneRef  scene,
SUStringRef name 
)
related

Retrieves the name of a scene object.

Parameters
[in]sceneThe scene object.
[out]nameThe name retrieved.
Returns
enum SUResult SUSceneGetNumHiddenEntities ( SUSceneRef  scene,
size_t *  count 
)
related

Retrieves the number of hidden entities in the scene object.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[out]countThe number of hidden entities.
Returns
enum SUResult SUSceneGetNumLayerFolders ( SUSceneRef  scene,
size_t *  count 
)
related

Retrieves the number of layer folders in the scene object.

Since
SketchUp 2021.0, API 9.0
Parameters
[in]sceneThe scene object.
[out]countThe number of layer folders.
Returns
enum SUResult SUSceneGetNumLayers ( SUSceneRef  scene,
size_t *  count 
)
related

Retrieves the number of layers in the scene object.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[out]countThe number of layers.
Returns
enum SUResult SUSceneGetPhotoMatchImageDisplayed ( SUSceneRef  scene,
bool *  displayed 
)
related

Retrieves the "photo matched image displayed" setting of a scene object.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[out]displayedThe setting retrieved.
Returns
enum SUResult SUSceneGetRenderingOptions ( SUSceneRef  scene,
SURenderingOptionsRef options 
)
related

Retrieves the rendering options for the scene object.

Parameters
[in]sceneThe scene object.
[out]optionsThe options retrieved.
Returns
enum SUResult SUSceneGetShadowInfo ( SUSceneRef  scene,
SUShadowInfoRef shadow_info 
)
related

Retrieves the shadow info of a scene.

Since
SketchUp 2015, API 3.0
Parameters
[in]sceneThe scene object.
[out]shadow_infoThe shadow info object retrieved. This object is owned by the scene and must not be explicitly released.
Returns
enum SUResult SUSceneGetSketchAxesDisplayed ( SUSceneRef  scene,
bool *  displayed 
)
related

Retrieves the "sketch axes displayed" setting of a scene object.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[out]displayedThe setting retrieved.
Returns
enum SUResult SUSceneGetStyle ( SUSceneRef  scene,
SUStyleRef style 
)
related

Retrieves the scene's style.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[out]styleThe style object retrieved.
Returns
enum SUResult SUSceneGetUseAxes ( SUSceneRef  scene,
bool *  use_axes 
)
related

Retrieves the "use axes" setting of a scene object.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[out]use_axesThe setting retrieved.
Returns
enum SUResult SUSceneGetUseCamera ( SUSceneRef  scene,
bool *  use_camera 
)
related

Retrieves the "use camera" setting of a scene object.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[out]use_cameraThe setting retrieved.
Returns
enum SUResult SUSceneGetUseHidden ( SUSceneRef  scene,
bool *  use_hidden 
)
related

Gets whether the scene uses the hidden properties of entities.

Since
SketchUp 2018 M0, API 6.0
Deprecated:
The functionality is replaced by SUSceneGetUseHiddenGeometry() and SUSceneGetUseHiddenObjects().
Parameters
[in]sceneThe scene object.
[out]use_hiddenThe current setting for whether or not the hidden property of entities is used.
Returns
enum SUResult SUSceneGetUseHiddenGeometry ( SUSceneRef  scene,
bool *  use_hidden 
)
related

Gets whether the scene uses the hidden geometry properties of root-level entities.

Since
SketchUp 2020.1, API 8.1
Parameters
[in]sceneThe scene object.
[out]use_hiddenThe current setting for whether or not the hidden property of root-level entities is used.
Returns
enum SUResult SUSceneGetUseHiddenLayers ( SUSceneRef  scene,
bool *  use_hidden_layers 
)
related

Retrieves the "use hidden layers" setting of a scene object.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[out]use_hidden_layersThe current setting for whether or not hidden layer are used.
Returns
enum SUResult SUSceneGetUseHiddenObjects ( SUSceneRef  scene,
bool *  use_hidden 
)
related

Gets whether the scene uses the hidden properties of objects.

Since
SketchUp 2020.1, API 8.1
Parameters
[in]sceneThe scene object.
[out]use_hiddenThe current setting for whether or not the hidden property of objects is used.
Returns
enum SUResult SUSceneGetUseRenderingOptions ( SUSceneRef  scene,
bool *  use_rendering_options 
)
related

Retrieves the "use rendering options" setting of a scene object.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[out]use_rendering_optionsThe current setting for whether or not rendering options are used.
Returns
enum SUResult SUSceneGetUseSectionPlanes ( SUSceneRef  scene,
bool *  use_section_planes 
)
related

Gets whether the scene uses section planes.

Since
SketchUp 2018 M0, API 6.0
Parameters
[in]sceneThe scene object.
[out]use_section_planesThe current setting for whether or not section planes property is used.
Returns
enum SUResult SUSceneGetUseShadowInfo ( SUSceneRef  scene,
bool *  use_shadow_info 
)
related

Retrieves the "use shadow info" setting of a scene object.

Since
SketchUp 2015, API 3.0
Parameters
[in]sceneThe scene object.
[out]use_shadow_infoThe current setting for whether or not shadow info is used.
Returns
enum SUResult SUSceneRelease ( SUSceneRef scene)
related

Releases a scene object.

Parameters
[in]sceneThe scene object.
Returns
enum SUResult SUSceneRemoveLayer ( SUSceneRef  scene,
SULayerRef  layer 
)
related

Removes the specified layer from the provided scene.

   Removing a layer from a scene will flag the layer to use its default
   scene visibility. See \ref SULayerVisibilityDefaultType. Scenes do not
   own their layers so removing them doesn't release them.
Note
Prior to SketchUp 2020.0, API 8.0 this function did not return SU_ERROR_INVALID_ARGUMENT.
Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[in]layerThe layer to be removed from the scene.
Returns
enum SUResult SUSceneRemoveLayerFolder ( SUSceneRef  scene,
SULayerFolderRef  layer_folder 
)
related

Removes the specified layer folder from the provided scene.

   Removing a layer folder from a scene will cause that layer folder to be
   flagged as VISIBLE for the specified scene. Scenes do not own their layer
   folders so removing them doesn't release them.
Since
SketchUp 2021.0, API 9.0
Parameters
[in]sceneThe scene object.
[in]layer_folderThe layer folder to be removed from scene.
Returns
enum SUResult SUSceneSetCamera ( SUSceneRef  scene,
SUCameraRef  camera 
)
related

Sets a given scene's camera object. The scene does not take ownership of the provided camera, it just copies the properties to the scene's owned camera. If the input camera was created using SUCameraCreate() it must be released using SUCameraRelease().

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[in]cameraThe camera object to be set.
Returns
enum SUResult SUSceneSetDrawingElementHidden ( SUSceneRef  scene,
SUDrawingElementRef  drawing_element,
bool  is_hidden 
)
related

Set the visibility of a drawing element in a scene.

Since
SketchUp 2020, API 8.0
Note
Only drawing elements at the root of the model, or nested instances of components, groups, and images are controlled by scene visibility.
Parameters
[in]sceneThe scene object.
[in]drawing_elementThe drawing element object.
[in]is_hiddenThe new setting for whether or not the drawing element is hidden in the scene.
Returns
enum SUResult SUSceneSetFlags ( SUSceneRef  scene,
uint32_t  flags 
)
related

Sets the flags for a scene object.

See Scene Flags for available flags that can be combined bitwise.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[in]flagsThe flags to be set.
Returns
enum SUResult SUSceneSetIncludeInAnimation ( SUSceneRef  scene,
bool  include_in_animation 
)
related

Sets the "include in animation" setting of a scene object.

Since
SketchUp 2018, API 6.0
Parameters
[in]sceneThe scene object.
[in]include_in_animationThe new setting for whether or not to include in animation.
Returns
enum SUResult SUSceneSetName ( SUSceneRef  scene,
const char *  scene_name 
)
related

Sets the name of a scene object.

Warning
Breaking Change: The behavior of SUSceneSetName changed in SketchUp SDK 2018 API 6.0 to return SU_ERROR_INVALID_ARGUMENT if the given name already exists in the scene's model.
Parameters
[in]sceneThe scene object.
[in]scene_nameThe name of the scene object. Assumed to be UTF-8 encoded.
Returns
enum SUResult SUSceneSetSketchAxesDisplayed ( SUSceneRef  scene,
bool  displayed 
)
related

Sets the "sketch axes displayed" setting of a scene object.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[in]displayedThe new setting for whether or not sketch axes should be displayed.
Returns
enum SUResult SUSceneSetUseAxes ( SUSceneRef  scene,
bool  use_axes 
)
related

Sets the "use axes" setting of a scene object.

Since
SketchUp 2017, API 5.0
Parameters
[in]sceneThe scene object.
[in]use_axesThe new setting for whether or not the axes is used.
Returns
enum SUResult SUSceneSetUseCamera ( SUSceneRef  scene,
bool  use_camera 
)
related

Sets the "use camera" setting of a scene object.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[in]use_cameraThe current setting for whether or not the camera is used.
Returns
enum SUResult SUSceneSetUseHidden ( SUSceneRef  scene,
bool  use_hidden 
)
related

Sets whether the scene uses the hidden properties of entities.

Since
SketchUp 2018 M0, API 6.0
Deprecated:
The functionality is replaced by SUSceneSetUseHiddenGeometry() and SUSceneSetUseHiddenObjects().
Parameters
[in]sceneThe scene object.
[in]use_hiddenThe new setting for whether or not the hidden property of entities is used.
Returns
enum SUResult SUSceneSetUseHiddenGeometry ( SUSceneRef  scene,
bool  use_hidden 
)
related

Sets whether the scene uses the hidden properties of root-level entities.

Since
SketchUp 2020.1, API 8.1
Parameters
[in]sceneThe scene object.
[in]use_hiddenThe new setting for whether or not the hidden property of root-level entities is used.
Returns
enum SUResult SUSceneSetUseHiddenLayers ( SUSceneRef  scene,
bool  use_hidden_layers 
)
related

Sets the "use hidden layers" setting of a scene object.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[in]use_hidden_layersThe new setting for whether or not hidden layers are used.
Returns
enum SUResult SUSceneSetUseHiddenObjects ( SUSceneRef  scene,
bool  use_hidden 
)
related

Sets whether the scene uses the hidden properties of objects.

Since
SketchUp 2020.1, API 8.1
Parameters
[in]sceneThe scene object.
[in]use_hiddenThe new setting for whether or not the hidden property of objects is used.
Returns
enum SUResult SUSceneSetUseRenderingOptions ( SUSceneRef  scene,
bool  use_rendering_options 
)
related

Sets the "use rendering options" setting of a scene object.

Since
SketchUp 2016, API 4.0
Parameters
[in]sceneThe scene object.
[in]use_rendering_optionsThe new setting for whether or not rendering options are used.
Returns
enum SUResult SUSceneSetUseSectionPlanes ( SUSceneRef  scene,
bool  use_section_planes 
)
related

Sets whether the scene uses section planes.

Since
SketchUp 2018 M0, API 6.0
Parameters
[in]sceneThe scene object.
[in]use_section_planesThe new setting for whether or not section planes property is used.
Returns
enum SUResult SUSceneSetUseShadowInfo ( SUSceneRef  scene,
bool  use_shadow_info 
)
related

Sets the "use shadow info" setting of a scene object.

Since
SketchUp 2015, API 3.0
Parameters
[in]sceneThe scene object.
[in]use_shadow_infoThe new setting for whether or not shadow info is used.
Returns
SUEntityRef SUSceneToEntity ( SUSceneRef  scene)
related

Converts from an SUSceneRef to an SUEntityRef. This is essentially an upcast operation.

Parameters
[in]sceneThe given scene reference.
Returns
  • The converted SUEntityRef if scene is a valid object. If not, the returned reference will be invalid.

The documentation for this struct was generated from the following files: