hide Notes Rollout in maya 2012 attributes

david | dj mod,mel script | Sunday, April 10th, 2011

The attribute editor in Maya 2012 keeps expanding the Notes roll-out. I'd never noticed this being quite so annoying in previous versions. I'm pretty sure that previously, once I closed it by dragging the divider bar to the bottom of the window, it stayed like that until I pulled it up again. Now, in maya 2012 it seems to jump up again as soon as I deselect anything. Most of the time this is a waste of space for me.

Fortunately I recently read a simple solution posted on cgtalk by ginodauri. To hide the notes roll-out you can use the following mel command

layout -e -vis 0 AEaddOrEditNotesLayout;

To make this even easier I thought it would be good to add a menu item to the List menu in the attribute editor.

notesDisplayMenu.jpg

So you can turn it on and off and maya remembers your last choice between sessions.

This functionality is added by modifying a copy of one of the maya installation files called showEditor.mel which can be placed in your local scripts folder to avoid messing up the maya install. You can get the mod for maya 2012 from my downloads page.

update: added 2013 version

12 Comments »

  1. wow wow wow.
    ur great

    Comment by sagunmanandhar — April 11, 2011 @ 1:03 am

  2. Hey Man I've been using your scripts for a while and just found your blog and am excited to read up on your tecniques. This is slightly off topic on this post but do you have any idea how to rearrange attributes in maya 2012, I used to use cbArrangeAttributes.mel but that doesn't seem to be working any more.
    thanks!

    Comment by yeoldebrian — May 18, 2011 @ 4:56 am

  3. Hey Me again,
    I found a way to reorder attributes in 2011/2012, it's a workaround but not too tedious:

    (originally posted by irongiant in the autodesk forums)

    1, Get this script from Highend 3D “attributeMan-v1.0.mel”
    (Many Thanks to Hamish McKenzie & David Walden who wrote it.)
    2, Duplicate the node with attributes to re-order.
    3,Run the script, it will open a window. Select your source node then hit “Load Obj” button
    4, This is where you start to re-order the attributes and ADD additional ones as required.
    Select the attribute that you want to transfer in the attributMan window then select the duplicate note and hit “Transfer Attrs” The attribute is copied with ALL EXISTING connections. Neat.
    5, Continue as 4 and add additional attributes if required as you build the re-ordered attribute list.
    6, Check all transferred attributes with connections are functioning as expected then delete the original node, rename duplicate node as required.

    I hope this helps others as much as it helps me.
    BTW the attribute re-ordering in the script worked up to Maya 2010 hence the above work around for 2011.

    Comment by yeoldebrian — May 18, 2011 @ 5:51 am

  4. Thanks for the tips on attribute reordering. I'm actually using one of Hamish McKenzie's other scripts which I did a bit of modification on to get it to work in 2011, 2012. Its a bit messy. I should probably clean it up and post it here somewhere... oneday...

    Comment by david — May 20, 2011 @ 12:57 am

  5. Thanks for this fix.
    Have you found that Ctrl-a only toggles the AE when it is docked with the Channel Box?
    I've found that for all other positions, it will only open the AE, but not close it.

    Comment by PixL — June 9, 2011 @ 12:52 am

  6. David:
    If you could share the fixd reorder script, it would be much appreciated. I don't care if its messy...

    Comment by PixL — August 10, 2011 @ 2:16 am

  7. David:
    If you could share the fixd reorder script, it would be much appreciated. I don't care if its messy...
    Thanks much.

    Comment by PixL — August 10, 2011 @ 2:17 am

  8. this is great script, but would be better if I can disable and will not show again when Maya restarts....

    Comment by ggabriel — June 27, 2012 @ 7:42 am

  9. That is how it is working for me.
    An optionVar is set that remembers your choice when you disable the notes display. This will be saved in your prefs and reapplied when you restart maya.
    The only reason I can think of for it not working for you is that you are not saving your prefs. By default, prefs are saved when you exit maya. Maybe you disabled that? Also, when people run several maya sessions at the same time, prefs that get changed in one session, may be overwritten if another session is closed after the one where the pref got changed.

    Comment by david — June 27, 2012 @ 11:47 pm

  10. Finally got around to installing this. Thanks as always, but in 2013 it isn't setting the var between sessions.
    Procedure:
    Open Maya, show AE.
    Create Locator - Notes are displayed, menu item is unchecked.
    Check, then uncheck menu item, notes display is turned off.
    Restart Maya - same state as at beginning of procedure.

    In userSetup.mel, add:
    layout -e -vis 0 AEaddOrEditNotesLayout;

    Notes are off when procedure above is repeated.
    Still get the menu.

    Comment by PixL — October 11, 2012 @ 2:08 am

  11. Well spotted! Its not that the var is not being set, it is that maya has decided to ignore it when it builds the editor. This is the price we pay for faster maya loading. However it was an easy fix. I added a line to force it to read the option var and update the display after the menu has been built.

    I added the update to the rar on the downloads page.

    DAvid

    Comment by david — October 11, 2012 @ 11:00 pm

  12. Thanks a lot Dave.
    Your product support is amazing ;-)

    Comment by PixL — October 15, 2012 @ 2:06 pm

RSS feed for comments on this post.

Leave a comment

You must be logged in to post a comment.

Powered by WordPress | Based on a theme by Roy Tanck