Is there a way to collect all shotgun assets for a project where at least one take contains the string being searching?
For example we have a bunch of Assets that are tagged with keywords like the following…
[
{ 'code': 'Blue_Particle_Motion_Background_1080',
'id': 23,
'tags': [ { 'id': 212, 'name': 'fire', 'type': 'Tag'},
{ 'id': 277, 'name': 'pyro', 'type': 'Tag'}],
'type': 'CustomNonProjectEntity08'
},
{ 'code': 'Crazy_Balls',
'id': 24,
'tags': [ { 'id': 212, 'name': 'fire', 'type': 'Tag'},
{ 'id': 277, 'name': 'pyro', 'type': 'Tag'},
{ 'id': 209, 'name': 'smoke', 'type': 'Tag'}],
'type': 'CustomNonProjectEntity08'
},
{ 'code': 'Formation_Particles__Videvo',
'id': 25,
'tags': [ { 'id': 212, 'name': 'fire', 'type': 'Tag'},
{ 'id': 277, 'name': 'pyro', 'type': 'Tag'}],
'type': 'CustomNonProjectEntity08'
},
{ 'code': 'Particle_Random_49',
'id': 26,
'tags': [ { 'id': 212, 'name': 'fire', 'type': 'Tag'},
{ 'id': 277, 'name': 'pyro', 'type': 'Tag'}],
'type': 'CustomNonProjectEntity08'
}
]
I want to make a query where if i use the string ‘mok’ it returns all items where any tag contains the string ‘mok’ in it. In this case it would return 1 item, since it contains the tag ‘smoke’.
Is this possible?