|08 August 2017|
MEL Problem - Integrate int field into column
I have a pretty simple problem (I hope). I am a MEL novice, so I am still getting my head around how to properly type up commands in MEL.
I wasn't sure which search terms to use to find out how to solve my issue, so I've come here to ask for help from more experienced hands .
I present to you my 'hobo' script. It was born out of an urge to want to select/insert/delete every other edge on an object, instead of manually having to select them.
window -wh 250 70 -title "Inseldel Loops";
$command = ("polySelectEdgesEveryN edgeRing 2; polySelectEdgesEveryN edgeLoop 1;");
button -w 250 -label "SelNthEdge" -command $command;
$command = ("polySelectEdgesEveryN edgeRing 2; polySelectEdgesEveryN edgeLoop 1; polyDelEdge -cv true -ch 1");
button -w 250 -label "DelNthEdge" -command $command;
$command = ("polySelectSp -loop; polySelectSp -ring; PolySelectConvert 1; polySubdivideFacet -duv 2 -dvv 1 -sbm 1 -ch 1");
button -w 250 -label "InsNthEdge" -command $command;
• Here is what the the above command looks like today. The buttons are hardwired to the above script and offer no variability:
• Here is what I want to do with it:
I would like to be able to input a custom number into the added integer fields, which the button next to it takes into account when it is pressed/run.
I don't know how to set this up. With some help I can learn something new!
With best regards,
|3 Weeks Ago|
Something like this?
Just copy/paste it into the Scirpt Editor and run it.
|reply share thread|