As the title,
can I read/query the color value set for a SG status background?
3 Likes
Hi Ricardo,
Yes, this is possible! You can read the schema for any entity in Shotgun (status included):
sg.schema_field_read('Status')
The Status entity has the bg_color
property. So if I query for the bg_color
of a Status I get something like this:
>>> sg.find('Status', [['id', 'is', MY_ID]], ['bg_color'])
[{'bg_color': '202,225,202', 'id': 1, 'type': 'Status'}]
Let me know if that gets you the sort of data you’re after!
3 Likes
Ah yes that’s what I’m after!
I tried doing a schema read for a Version “sg_status_list” but I guess I’ll have to make it a bit more complex.
This is great!
Thanks!
2 Likes