Notepad ++

I use Notepad ++ as my script editor when I’m working on large coding projects.
Because when Maya crashes it takes any unsaved script changes with it!
But being used to the MEL command highlighting in the Maya script editor I went hunting and turned up this:
Then I picked up a Maya-ish theme and modified the language to work with Maya Python syntax highlighting:

How to:

Put Waher-style in C:\Program Files (x86)\Notepad++\themes

put jbMayaPython in C:\Program Files (x86)\Notepad++\plugins\APIs

put userDifineLang in C:\Users\*USER*\AppData\Roaming\Notepad++


load the theme with notepad++’s theme loader then
select the language with the language dropdown.

Cluster tool

I wrote a bit of code that will create a cluster on polygon geometry regardless of selection type, eg face, edge or vertex. Speeds things up a little.

import maya.cmds as cmds
def makeCluster():
	selection =
	for i in selection:
		string = str(i)
			object,selected = string.split('.')
			sel,CVnum = selected.split('[')
			if sel == 'e':
				verts = cmds.polyListComponentConversion(selection,fromEdge=True,toVertex=True), r=True)
			print 'passed edge'
			if sel == 'f':
				verts = cmds.polyListComponentConversion(selection,fromFace=True,toVertex=True), r=True)
			print 'passed face'
			if sel == 'vtx':
				print ' no conversion needed'
			print 'passed vtx'
			print 'object selected'