pymel.core.context.dollyCtx

dollyCtx(*args, **kwargs)

This command can be used to create, edit, or query a dolly context.

Flags:

Long Name / Short Name Argument Types Properties
alternateContext / ac bool ../../../_images/create.gif ../../../_images/query.gif
  Set the ALT+MMB and ALT+SHIFT+MMB to refer to this context.
boxDollyType / bdt unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Set the behavior of where the camera’s center of interest is set to after the box dolly. In surfacemode, the center of interest will be snapped to the surface point at the center of the marquee. In bboxmode, 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.
centerOfInterestDolly / cd bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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.
dollyTowardsCenter / dtc bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Dolly towards center (if true), else dolly towards point where user clicks in the view.
exists / ex bool ../../../_images/create.gif
  Returns true or false depending upon whether the specified object exists. Other flags are ignored.
history / ch bool ../../../_images/create.gif
  If this is a tool command, turn the construction history on for the tool in question.
image1 / i1 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  First of three possible icons representing the tool associated with the context.
image2 / i2 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Second of three possible icons representing the tool associated with the context.
image3 / i3 unicode ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Third of three possible icons representing the tool associated with the context.
localDolly / ld bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  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.
name / n unicode ../../../_images/create.gif
  If this is a tool command, name the tool appropriately.
orthoZoom / oz bool ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  Zoom orthographic view (if true), else dolly orthographic camera. Default value is true.
scale / s float ../../../_images/create.gif ../../../_images/query.gif ../../../_images/edit.gif
  The sensitivity for dollying the camera.
toolName / tn unicode ../../../_images/create.gif ../../../_images/query.gif
  Name of the specific tool to which this command refers. Flag can have multiple arguments, passed either as a tuple or a list.

Derived from mel command maya.cmds.dollyCtx

Example:

import pymel.core as pm

pm.dollyCtx( 'dollyContext', s=1.0, ac=False, ld=False, cd=False )

pm.dollyCtx( 'dollyContext', e=True, bdt='surface' )