## Execute (Graphic Sequencer)

### Description

Use this callback to implement your viewport mode or callback.

Viewport modes and callbacks share the OpenGL state machine with Softimage. If you need to change the OpenGL state, you should restore the original state when you are finished.

### Applies To

Graphic Sequencer

### Syntax

    void <xgs_plugin-item_name>_Execute(
            CRef& in_context,
            LPVOID *in_pUserData
    ) {
            ...
    }

<xgs_plugin-item_name> is the name specified in the call to RegisterViewportCallback or RegisterViewportMode, with any spaces converted to underscores.

### Parameters

Parameter | Type | Description
--- | --- | ---
in_context | CRef& | A reference to the GraphicSequencerContext object.
in_pUserData | LPVOID | Pointer to user data.

### See Also

- Graphic Sequencer Callbacks
- Init (Graphic Sequencer)
- Term (Graphic Sequencer)