I have this script that I want to use as a benchmark tool and the same format works in Maya but in Houdini, it simply goes to the last frame without drawing the runup. How would I force Houdini to draw each frame for hou.setFrame ?
import time
runcount = 5 resultTime = {} totalTime = 0 for n in range(0, runcount): start = time.time() for i in range(1, 100): hou.setFrame(i) end = time.time() resultTime = end - start print resultTime totalTime = resultTime + totalTime print totalTime average = totalTime / runcount print “average is ” + str(average)