SpotLight.copy Method

Parent Object: SpotLight

PreviewThis functionality is provided as a preview of intended future API capabilities. You are encouraged to use it and report any problems or suggestions using the Fusion API and Scripts forum.

Because this is a preview of future functionality, there is the possibility that it will change, which will possibly break any existing programs that use this functionality. Because of that, you should never deliver any programs that use any preview capabilities. For a distributed program, you should wait until it has moved from preview to released state.

Derived from: Light.copy


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

Description

Creates a copy of this light in the same collection. This is equivalent to the Copy command in the user interface. The new light has the same settings as this light and is given a unique name.

Syntax

"spotLight_var" is a variable referencing a SpotLight object.

returnValue = spotLight_var.copy()
"spotLight_var" is a variable referencing a SpotLight object.

#include <Fusion/Render/SpotLight.h>

returnValue = spotLight_var->copy();
"spotLight_var" is a variable referencing a SpotLight object.

returnValue = spotLight_var.copy();

Return Value

Type Description
Light Returns the newly created copy of the light or null if the copy failed.

Version

Introduced in version September 2026