This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 = """ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import urllib | |
| __version__ = "0.9.0" | |
| def checkUpdates(): | |
| url = "http://pepperusso.uk/update.txt" # Current version of the script. In the file: First row: 1.0.0 | |
| update = urllib.urlopen(url).read() | |
| if update.split("\n")[0] > __version__: | |
| print("\n".join(update.split("\n")[1:])) # Print message from the txt file in the server (Starting from second line) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from maya import cmds | |
| # Qt | |
| try: | |
| from PySide2 import QtWidgets, QtCore, QtGui | |
| except ImportError: | |
| from PySide import QtCore, QtGui | |
| QtWidgets = QtGui | |
| class MainWindow(QtWidgets.QMainWindow): | |
| def __init__(self): |