Mel to python help!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey i just need help translating my scipt from mel to python, only really undderstand mel so any help would be great! thanks
-
source dagMenuProc;
int $lowAngle = 30;
int $highAngle = 150;
//Change the object back to object mode, just in case it wasn’t already
toggleSelMode;
changeSelectMode -object;
//Store the object that is selected
string $curSel[] = `ls -sl`;
//Select all edges and store in an Array list
doMenuComponentSelectionExt($curSel[0], "edge", 0);
int $edgecount[] = `polyEvaluate -e $curSel[0]`;
select ($curSel[0] +".e [0:" + ($edgecount[0] - 1) + "]");
//Constrain that selection to only edges of a certain Angle
polySelectConstraint -m 3 -a on -t 0x8000 -ab $lowAngle $highAngle;
//Remove the selection constraint so everything back to normal
polySelectConstraint -m 0;
print ("Hard edges between " + $lowAngle + " and " + $highAngle + " degrees have been selected");