import os import nuke import nukescripts import sys fileName=os.listdir("/mnt/intern/home/cdeorsay/Desktop/pythonIdea/images") numfiles=len(fileName) k=0 print(numfiles) totalwidth= 4*512 totalHeight = (numfiles/4) * 200 totalRows=numfiles/4 ContactSheet=nuke.nodes. ContactSheet(roworder = 'TopBottom', width=totalwidth, height=totalHeight, rows=totalRows) while (k