Remus Avram Posted February 27, 2017 Report Share Posted February 27, 2017 Hi Ftrack, is it possible to query by 'parent.entity_type'? Ex: session.query("Task where name is 'modeling' and parent.entity_type is 'AssetBuild' and ...') Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted February 28, 2017 Report Share Posted February 28, 2017 20 hours ago, Remus Avram said: Hi Ftrack, is it possible to query by 'parent.entity_type'? Ex: session.query("Task where name is 'modeling' and parent.entity_type is 'AssetBuild' and ...') Hi Remus, yes - this should be possible: session.query('Task where parent.object_type.name is "AssetBuild"') Link to comment Share on other sites More sharing options...
Remus Avram Posted February 28, 2017 Author Report Share Posted February 28, 2017 Thanks! Works! The only part that confuses us is that the object_type.name is the one from `System Settings` -> `Objects` -> `Name` (check attachment), not the ftrack object type. PS: It would be cool if you can add this query example in the documentation. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.