SceneSettings.centerOfFocus Property

Parent Object: SceneSettings
Defined in namespace "adsk::fusion" and the header file is <Fusion/Render/SceneSettings.h>

Description

When the isDepthofFieldEnabled property is true, this point is used as the center of focus. All objects that are the same distance from the camera as this point will be in focus. Any geometry that is closer or further away from the camera than this point will appear more out of focus.

Setting this property has the side effect of setting the isDepthOfField property to true. If the isDepthOfFieldEnabled property is false, the value of this property is ignored.

Syntax

"sceneSettings_var" is a variable referencing a SceneSettings object.

# Get the value of the property.
propertyValue = sceneSettings_var.centerOfFocus

# Set the value of the property.
sceneSettings_var.centerOfFocus = propertyValue
"sceneSettings_var" is a variable referencing a SceneSettings object.
#include <Fusion/Render/SceneSettings.h>

// Get the value of the property.
Ptr<Point3D> propertyValue = sceneSettings_var->centerOfFocus();

// Set the value of the property, where value_var is a Point3D.
bool returnValue = sceneSettings_var->centerOfFocus(value_var);

Property Value

This is a read/write property whose value is a Point3D.

Version

Introduced in version May 2023