PDA

View Full Version : Deactivate shelfButton in mel


asah
12-24-2012, 09:08 PM
How deactivate shelf button that already exist in shelf tab

like when write "-en 0" when create shelf button

asah
12-25-2012, 08:49 AM
Can anyone help me , plzzzzz

asah
12-25-2012, 09:53 AM
I knew the way :)

string $currentShelf = `tabLayout -q -st $gShelfTopLevel`;
string $shelfContents[] = `shelfLayout -q -childArray ($currentShelf)`;
shelfButton -e -en 0 $shelfContents[0];

^__^

CGTalk Moderation
12-25-2012, 09:53 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.