SwitchToolbar

Introduced

v1.0

Categories

viewing

Description

Switches to the specified toolbar menu on the Toolbar Panel. Toolbar menus include the Model, Animate, Render, Simulate and Hair menus.

Note: If you want to switch between the panels (Toolbar Panel, Weight Paint Panel, etc.) you need to use the OpenView command instead.

Scripting Syntax

SwitchToolbar( Target );

Parameters

Parameter Type Description
Target Integer Toolbar ID

Possible Values:

Description:

1 Model Toolbar
2 Animate Toolbar
3 Render Toolbar
4 Simulate Toolbar
5 Hair Toolbar

Examples

JScript Example

/* 
        This example opens the Weight Paint Panel, then the Toolbar Panel, then switches
        to the Simulate and then Hair menus on that panel. (It happens so fast
        that you can't really see it well in the UI, but you can run each line
        individually to see each result.)
*/
OpenView( "Weight Paint Panel" );
OpenView( "Toolbar Panel" );
SwitchToolbar( 4 );
SwitchToolbar( 5 );

See Also

OpenView