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

Synopsis

rollCtx( [context] , [rollScale=float])

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

rollCtx is undoable, queryable, and editable.

Create, edit, or query a roll context.

Return value

stringThe name of the context

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

Flags

rollScale
Long name (short name) Argument types Properties
rollScale(rs) float createqueryedit
In degrees of rotation per 100 pixels of cursor drag.

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.rollCtx( 'rollContext', rs=30.0 )