Getting Frames?

self.frames = task.frames

This is a task I created. I need to get the frames since the task started. This doesn’t work though, it breaks at this line.

Thanks.

According to the manual, it seems that it should be task.frame, not task.frames (singular, not plural).