Represents a command to reset the camera to its initial position.
This class sends a message to the Metabox API to reset the camera on a scene.
What does it unlock?
Resets the camera to its default state and position. Used to return camera to initial configuration after user manipulation.
Practical Application
Resets camera to the default position defined in the product/environment template. Essential for 'Reset View' buttons.
Also, useful after programmatic camera moves to return to a known starting state.
AI Coding Best Practices
Call api.sendCommandToMetabox(new ResetCamera()). No parameters. Restores template defaults — not the last user position.
Good practice to call after SetProduct changes that may shift the focal point.
Represents a command to reset the camera to its initial position. This class sends a message to the Metabox API to reset the camera on a scene.
What does it unlock?
Resets the camera to its default state and position. Used to return camera to initial configuration after user manipulation.
Practical Application
Resets camera to the default position defined in the product/environment template. Essential for 'Reset View' buttons. Also, useful after programmatic camera moves to return to a known starting state.
AI Coding Best Practices
Call
api.sendCommandToMetabox(new ResetCamera()). No parameters. Restores template defaults — not the last user position. Good practice to call after SetProduct changes that may shift the focal point.Example