Announcements

Between mid-October and November, the content on AREA will be relocated to the Autodesk Community M&E Hub and the Autodesk Community Gallery. Learn more HERE.

Select by Angle #MEL?

Select by Angle #MEL?

jayantbhatt07
Advocate Advocate
1,076 Views
4 Replies
Message 1 of 5

Select by Angle #MEL?

jayantbhatt07
Advocate
Advocate

Hi guys select by angle is always  a pain for me. So I downloaded one window UI command but dont know how to assign the working command to it. Suppose If I type 0 in the box it should not select the faces and if I type 45 degree in the floatfield it should select faces with 45 degree. Please help me I'm not from programmig field.

 

HERE IS THE COMMAND (I don't know MEL )

 

string $window = `window`;
columnLayout;
floatField -value 0;


showWindow $window;

0 Likes
Accepted solutions (1)
1,077 Views
4 Replies
Replies (4)
Message 2 of 5

mspeer
Consultant
Consultant
Accepted solution

Hi!

 

string $window = `window`;
columnLayout;
floatField -value 0 -cc "HERE IS THE COMMAND";

showWindow $window;
0 Likes
Message 3 of 5

jayantbhatt07
Advocate
Advocate

Hi, What should I type in the ''the here is command button'' I dont know. So it should select faces  according to angel wise. Like the button does in the screenshot.

 

Help please

 

mspeers.PNG

0 Likes
Message 4 of 5

mspeer
Consultant
Consultant

Hi!

 

If you don't know MEL you have to learn it to be able to do such things.
The problem is not the command itself, but how to set up the field, query the value from the field and execute the command with this value.

(Just in case you only need the command , it's "dR_setSelConstAngle 45".)

 

I am sorry, but i can't do the work for you.

 

There are plenty of tutorials out there and even the Maya documentation is extremely helpful and provides many examples.

0 Likes
Message 5 of 5

jayantbhatt07
Advocate
Advocate

Hi thank you so much for your help yes I just started learning #MEL. There are too many confusions thats why. 

0 Likes