pymel.core.context.polyShortestPathCtx

polyShortestPathCtx(*args, **kwargs)

Creates a new context to select shortest edge path between two vertices or UVs in the 3d viewport. In query mode, return type is based on queried flag.

Flags:

Long Name / Short Name Argument Types Properties
exists / ex bool  
   
image1 / i1 unicode  
   
image2 / i2 unicode  
   
image3 / i3 unicode  
   

Derived from mel command maya.cmds.polyShortestPathCtx

Example:

import pymel.core as pm

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