I'm trying to make a little script for batch rending for maya and every time I have this error at the line for i in xrange((startFrame)+"," +(endFrame) + int(1)): : in Batch # TypeError: coercing to Unicode: need string or buffer, int found
the code :
def Batch(ignore): # Settings startFrame = cmds.textField (myStart, query=True, text=True) endFrame = cmds.textField (myEnd, query=True, text=True) Camera = cmds.textField (myCamera,query=True, text=True) for i in xrange((startFrame)+"," +(endFrame) + int(1)): maya.cmds.currentTime(i) mel.eval('execRmanMenuItem("Render");') editor = 'renderView' I'll be very thankful if someone could help me.
for i in xrange(startFrame, endFrame + 1):??