get channel name?
Can anyone think of a way to select a channel in the channel box and return the name of that channel?
|
anyone?
|
Try working with this for starters:
Code:
channelBox -q -selectedMainAttributes mainChannelBox; You can look up channelBox in the MEL reference to learn more on what you can do with it. |
Thanks Danny. Funny thing is, I tried doing a search, but never found that one. I'll post the script I'm making with it when I'm done. It's a randomizer script.
|
Hmm. Well it works for the main channel box, but I tried substituting "shapeChannelBox" and variations on that theme. Can you think of a way to do it for any channel box?
|
mainChannelBox is the entire channel box. You need to change the -selectedMainAttributes flag to whatever is needed to access the shape attributes. The docs on channelBox should give you the options you can play with.
|
All times are GMT. The time now is 03:14 AM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Simply Maya 2018