Adverti horiz upsell

Missing Shelf Button Script (without resetting prefs) 1.0.0 for Maya (maya script)

Disappearing shelf buttons in Maya 2016 and up? This script tries to solve by cleaning userPrefs.py, All settings will be maintained

License
Button download
592 Downloads

Compatibility

  • 2017

Operating Systems

  • Linux
  • Mac
  • Windows

History

Created:08/06/2017
Last Modified:01/27/2021
File Size: 1.82 KB

Disappearing shelf buttons in Maya 2016 and up?

Description:

One reason for disappearing shelf buttons its entry exists multiple times in userPrefs.mel
what confuses the loading. There might be a shelf entry with ; at the end and one without. Both valid
but overwriting each other.

This script runs through the .mel file and tries to remove any line with duplicates.
Besides "shelfName" entries that are filtered are associated "shelfVersion", "shelfFile", "shelfLoad and "shelfAlign" entries


Args:
path_to_userprefs: file path to userPrefs.mel. Windows usually "C:/Users/username/Documents/maya/20xx/prefs/userPrefs.mel"


searchlines:
Limited to speed up script, default values should be good. If you need to modify will depend on our file.
Start and end line of to process for search process. You can search "shelf" in userPrefs.mel in text editor to find the section

Hot to use:

Run the script, then reopen shelf (or restart maya)

import pathToFile.missing_shelf_clean_userprefs.py as missi
missi.clean_disappearingshelf_userprefs("C:/Users/monika/Documents/username/2017/prefs/userPrefs.mel", searchlines=[1000, 3000])



Please use the Bug System to report any bugs.
Please use the Feature Requests to give me ideas.
Please use the Support Forum if you have any questions or problems.
Please rate and review in the Review section.

People who favorited this item:

  • Aiacos
    Aiacos
  • tony yang
    tony yang
  • coldside
    coldside
  • bwch
    bwch