Go to: Synopsis. Return value. Python examples.

Synopsis

polyShortestPathCtx()

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

polyShortestPathCtx is undoable, queryable, and editable.

Creates a new context to select shortest edge path between two vertices or UVs in the 3d viewport.

Return value

None

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

Python examples

import maya.cmds as cmds

# To create a new poly shortest edge path context:
#
cmds.polyShortestPathCtx( 'PolyViewPortShortestPath' )