Set task to "in progress" upon creation of a workfile?

I know I have come across this question before somewhere but cannot find it.

We would like to automatically set the task status to “In Progress” upon the creation of a workfile.
How could I best go about this?

I couldn’t find a hook for the workfiles app that would run upon file creation.

3 Likes

Hi Ricardo!

The scene_operation.py hook should do what you need.

If I remember correctly there are two “operations” that are fired off when pressing new file.
One is reset, but I think that is called at other times as well, and I think there is one for new file or something. Try taking over that hook, and printing out the operation variable at the top of the method, it should tell you what operations get run when pressing new file.

5 Likes

Cheers Phil! :smiley:

1 Like