@3dsource/metabox-front-api
    Preparing search index...

    Class ResetCamera

    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.

    Resets the camera to its default state and position. Used to return camera to initial configuration after user manipulation.

    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.

    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.

    import { ResetCamera, Communicator } from '@3dsource/metabox-front-api';
    window.env3DSource.apiReady = (api: Communicator) => {
    api.sendCommandToMetabox(new ResetCamera());
    };
    Index

    Constructors

    Properties

    Constructors

    Properties

    data: ToMetaBoxMessageEnvelope

    The message envelope populated by subclass constructors and sent via Communicator.sendCommandToMetabox.