Use the «Reset» button to reset the orientation and permutation of the cube in the 3D view to its initial state.
The permutation of the cube is reset to the unsolved state (for solver scripts) or to the solved state (for generator scripts) according to the settings in the «Options» tab.