Go to: Synopsis. Return value. Flags. Python examples.
dollyCtx( object , [alternateContext=boolean],
[boxDollyType=string],
[centerOfInterestDolly=boolean],
[dollyTowardsCenter=boolean],
[localDolly=boolean],
[scale=float])
Note: Strings representing object names and
arguments must be separated by commas. This is not depicted in the
synopsis.
dollyCtx is undoable, queryable, and editable.
This command can be used to create, edit, or query a dolly context.
string |
The name of the context |
In query mode, return type is based on queried flag.
alternateContext, boxDollyType, centerOfInterestDolly, dollyTowardsCenter, localDolly, scale
Long name (short name) |
Argument types |
Properties |
scale(s) |
float |
   |
|
The sensitivity for dollying the camera. |
|
alternateContext(ac) |
boolean |
   |
|
Set the ALT+LMB+MMB and ALT+CRL+LMB to refer to this
context. |
|
localDolly(ld) |
boolean |
   |
|
Dolly with respect to the camera's center of interest. The
camera will not pass through the center of interest. Local dolly
only applies to perspective cameras. |
|
centerOfInterestDolly(cd) |
boolean |
   |
|
Set the translate the camera's center of interest. Left and
right drag movements with the mouse will translate the center of
interest towards or away respectively from the camera. The center
of interest can be snapped to objects by using the left mouse
button for selection. The default select mask will be used. |
|
boxDollyType(bdt) |
string |
   |
|
Set the behavior of where the camera's center of interest is
set to after the box dolly. In surface mode, the center of
interest will be snapped to the surface point at the center of the
marquee. In bbox mode, the closest bounding box to the
camera will be used. Bounding box mode will use the selection mask
to determine which objects to include into the calculation. |
|
dollyTowardsCenter(dtc) |
boolean |
   |
|
Dolly towards center (if true), else dolly towards point where
user clicks in the view. |
|
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. |
import maya.cmds as cmds
cmds.dollyCtx( 'dollyContext', s=1.0, ac=False, ld=False, cd=False )
cmds.dollyCtx( 'dollyContext', e=True, bdt='surface' )