Eder Agreda Posted May 31, 2016 Report Share Posted May 31, 2016 Hello, I found something weird and I would like some opinions: I have created many assets directly in my ftrack project web page, but also created some from Python Script. The issue is that if I query all assets from my Project using for example: assets = session.query("Asset where parent.name is '{0}'".format(parent["name"])) for asset in assets: print asset["name"] I get all the Assets but the ones created from Python Script. I know they exist. I can even see them in the web page since there are components. If I search for them using their names, I can actually find them: assets = session.query("Asset where name is 'test' and parent.name is '{0}'".format(parent["name"])) for asset in assets: print asset["name"] I am missing something?? Is there a way to query all Assets regardless of the method that I used to create them?? Greetings Link to comment Share on other sites More sharing options...
Mattias Lagergren Posted June 1, 2016 Report Share Posted June 1, 2016 Hey, Could you provide a minimal, self-contained example script that produces this issue? Create an asset with the API. Query for it and fail to find it. That will help us reproduce this issue Link to comment Share on other sites More sharing options...
Eder Agreda Posted June 3, 2016 Author Report Share Posted June 3, 2016 I already fixed it. It was related to parenting. If I upload an asset via scripting or if I do it via ftrack-connect ;parenting is slightly differente, but that was all Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.