Here is a Python script that will create a little button in the top right corner to toggle on and off the thumbnails updates.
Off course this script with work in the current Maya session and will need to be reloaded every time, or you can set it up so that it is loaded automatically at startup.
this is the Python version:
import maya.cmds as cmds
class TgleThumbs(object):
def __init__(self):
cmds.setParent("MayaWindow|toolBar1|MainStatusLineLayout|formLayout5|flowLayout1")
if (cmds.renderThumbnailUpdate(q=True)):
self.myButton = cmds.iconTextButton (style='textOnly',image1='sphere.png',label='HS',width=15,height=12,c=self.tglThumbs,
bgc=(0,1,0))
else:
self.myButton = cmds.iconTextButton (style='textOnly',image1='sphere.png',label='HS',width=15,height=12,c=self.tglThumbs,
bgc=(1,0,0))
def tglThumbs(self,*args):
if (cmds.renderThumbnailUpdate(q=True)):
cmds.renderThumbnailUpdate(False)
cmds.iconTextButton (self.myButton,edit=True,bgc=(1,0,0))
print ('thumbNailUpdate off')
else:
cmds.renderThumbnailUpdate(True)
cmds.iconTextButton (self.myButton,edit=True,bgc=(0,1,0))
print ('thumNailUpdate on')
tglT=TgleThumbs()
Thanks to John Creson for the Python version!
Comments
You can follow this conversation by subscribing to the comment feed for this post.