Commands to pick curve on surface

 
 
 

What is the command to pick a curve on surface? Suppose you would like to set up marking menus to pick curves and curve on surface.

You can do the following:

selectMode -object;
 selectType -allObjects false; selectType -curveOnSurface true;

Now you can drag the results to the shelf, and you’re ready to rock!

Alternatively, drag this to the shelf:

setObjectPickMask "All" 0;
editMenuUpdate MayaWindow|mainEditMenu;
setObjectPickMask "Curve" true;
updateComponentSelectionMasks;
updateObjectSelectionMasks;