Skip to content

Instantly share code, notes, and snippets.

View gregoiredehame's full-sized avatar

gregoire.dehame gregoiredehame

View GitHub Profile
@peppe-russo
peppe-russo / install.py
Created July 23, 2017 19:31
Create a shelf button for your Maya script
def install():
############
url = 'http://pepperusso.uk/scripts/batchRename/icon.png' # Url of your icon
imageName = 'batchrename.png' # The icon will be saved using this name (include ext) in the icons folder of the current maya version (usually : documents/version/prefs/icons)
name = 'Batch Rename' # Name to use for the shelf button
tooltip = 'Rename multiple objects' # Tooltip to use for the shelf button
# Command of the shelf button.
command = """