0

Get a list of the non-empty pipeline steps of a Shot

Hello, i'm trying to trigger some events between the states of the tasks, i.e. for one particular shot, when step k is final, and step k+1 is "Waiting to start", step k+1 passes to "ready to start".

I managed to make it hardcoding a list of all the steps, i.e. [Storyboard,Footage,Tracking,Layout,etc...], but not all the shots have all the steps. I need to get a list of all the available pipeline steps of a particular shot.

Of course, I could do a for loop in the shot, but I'm sure there's a cleaner solution. Cleaner solution, anyone? Thank you.

3 comments

  • 0
    Avatar
    Stephen Chiu

    Hey Kevin,

    Are you familiar with our Shotgun Event Daemon? The main github page is located here: https://github.com/shotgunsoftware/shotgunEvents

    We have a sample script that supports a very similar workflow to what you're describing. Here, instead of hard coding the pipeline steps, it's using the Task Dependencies feature which could solve the issue you're experiencing with shots that don't have all the steps. Let us know if this helps or if you have any further questions!

  • 0
    Avatar
    Armando Ricalde
    Hi Stephen, yes we do know the Shotgun Event Daemon, we're using it extensively and actually we figured out that using Task Dependencies was the way to solve it :-)
    Thanks
  • 0
    Avatar
    Stephen Chiu

    Great to hear Armando!

Please sign in to leave a comment.