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


orbitCtx([localOrbit=boolean], [orbitScale=float])

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

orbitCtx is undoable, queryable, and editable.

Create, edit, or query an orbit context.

Return value

stringThe name of the context

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


localOrbit, orbitScale
Long name (short name) Argument types Properties
orbitScale(os) float createqueryedit
In degrees of rotation per 100 pixels of cursor drag.
localOrbit(lo) boolean createqueryedit
Orbit around the camera's center of interest.

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.orbitCtx( 'orbitContext', os=30.0, lo=False )