Go to: Synopsis. Return value. Related. MEL examples.
viewHeadOn
[camera]
viewHeadOn is undoable, queryable, and editable.
The viewHeadOn command positions the specified camera so it is looking "down" the normal of the live object, and fitted to the live object. If the live object is a surface, an arbitrary normal is chosen.None
In query mode, return type is based on queried flag.
// Create a new camera string $cam[] = `camera` ; string $camera = $cam[0] ; // Create a polygonal cone, rotate it, make it live string $object[] = `polyCone -ax 0 1 0` ; rotate 15 30 45 ; makeLive $object[0] ; // Align the camera viewHeadOn $camera ; // Remove the live object makeLive -none ;