Go to: Synopsis. Return value. Flags. Python examples.


projectionManip([fitBBox=boolean], [projType=int], [switchType=boolean])

Note: Strings representing object names and arguments must be separated by commas. This is not depicted in the synopsis.

projectionManip is undoable, queryable, and NOT editable.

Various commands to set the manipulator to interesting positions.

Return value


In query mode, return type is based on queried flag.


fitBBox, projType, switchType
Long name (short name) Argument types Properties
fitBBox(fb) boolean create
Fit the projection manipulator size and position to the shading group bounding box. The orientation is not modified.
projType(pt) int create
Set the projection type to the given value. Projection type values are:
  • 1 = planar.
  • 2 = spherical.
  • 3 = cylindrical.
  • 4 = ball.
  • 5 = cubic.
  • 6 = triplanar.
  • 7 = concentric.
  • 8 = camera.
switchType(st) boolean create
Loop over the allowed types. If the hardware shading is on, it loops over the hardware shadeable types (planar, cylindrical, spherical), otherwise, it loops over all the types. If there is no given value, it loops over the different projection types.

Flag can appear in Create mode of command Flag can appear in Edit mode of command
Flag can appear in Query mode of command Flag can have multiple arguments, passed either as a tuple or a list.

Python examples

import maya.cmds as cmds

cmds.projectionManip( fb=True )
cmds.projectionManip( pt=3 )