0

query in publishedFile

retrieving publishedfiles with toolkit

is there a way to retrieve the task status long name directly like

"task.Task.sg_status_list.Status.code",

"task.Task.sg_status_list.Status.name",

both returns the shot code of the status lets say "wip"

i d like "Work in progress" instead of "wip"

 

2 comments

  • 0
    Avatar
    Permanently deleted user

    Hello!

    Task.sg_status_list is a string so there is no way to do the lookup. You need to load a list of the statuses and then use that as a lookup, as far as I know.

    Here's an example of how we use the shotgun model in the loader to create a simple, cached interface around the status list:

    https://github.com/shotgunsoftware/tk-multi-loader2/blob/master/python/tk_multi_loader/model_status.py

    Hope this helps! Thanks
    Manne

     

  • 0
    Avatar
    Guy Dubost

    thats where i ended at the time

    thx Manne

Please sign in to leave a comment.