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.
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.
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.