Go to: Synopsis. Return value. MEL examples.

Synopsis

allViewFit (int $allObjects)

Apply the viewFit command to all model panels.

Return value

None

Arguments

Variable Name Variable Type Description
$allObjectsintif true, fit the view around all objects, otherwise use just the active object(s).

MEL examples

 // Fit the view to all objects:
 allViewFit(1);

 // Fit the view to just the selected objects:
 allViewFit(0);