AWS Thinkbox Discussion Forums

First and Last Frame

I’m trying to retrieve the first and last frame number of the rendering frame list. So far I’ve written this

frames = job.JobFrames
frames.sort(key=int)

But it throws and error saying:

My goal is to sort the frame list by numerical value, then get the first and last item in the list to know my first and last frame being rendered.

This appears to fix it if anyone needs to know

frames = []
for f in job.JobFramesList:
    frames.append(f)
frames.sort()

Indeed Unicode introduces a few gotchas here and there, but on par it does far more good than harm. Thanks for sharing your solution.

Privacy | Site terms | Cookie preferences