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.

Maya menuitem color #mel

Maya menuitem color #mel

jayantbhatt07
Advocate Advocate
800 Views
2 Replies
Message 1 of 3

Maya menuitem color #mel

jayantbhatt07
Advocate
Advocate
Hi I'm working on script where I want to give the color to the menuitem. Suppose it it is x it should be in Red color, Y in green color like that Any idea How? symbolButton -w 35 -h 35 -image "plane.png" -c "ct"; //Right click on the button popupMenu; menuItem -l "X" -c "gh"; menuItem -l "Y" -c "gh"; menuItem -l "Z" -c "hj";
0 Likes
Accepted solutions (1)
801 Views
2 Replies
Replies (2)
Message 2 of 3

lee.dunham
Collaborator
Collaborator
Accepted solution

If you have to use Mel, I guess you could provide a coloured image?

Otherwise, you could look at colouring a QMenuItem if you can use python.

I couldn't see another simple way to do it with the available Mel flags.

0 Likes
Message 3 of 3

jayantbhatt07
Advocate
Advocate

menuItem -image "activeSelectedAnimLayer.png" -l "Sphere_10" -c "polySphere -r 1 -sx 10 -sy 10 -ax 0 1 0 -cuv 2 -ch 1";

 

 

Hi thank you it worked.

0 Likes