Go to: Synopsis. Return value. Python examples.

Synopsis

currentCtx()

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

currentCtx is undoable, NOT queryable, and NOT editable.

This command returns the currently selected tool context.

Return value

string: The name of the currently selected tool context.

Python examples

import maya.cmds as cmds

cmds.currentCtx()