All Activity

This stream auto-updates     

  1. Yesterday
  2. So here's some more information just if anybody is interested: This code is searching for a sequence that doesn't exist: seqs = session.query('Sequence where name is "{0}" and project.id is "{1}"'.format('060', project_data['id'])).first() .first() returns None seqs = session.query('Sequence where name is "{0}" and project.id is "{1}"'.format('060', project_data['id'])).one() .one() returns: Traceback (most recent call last): File "C:/Users/tmiko/PycharmProjects/cglumberjack/src/plugins/project_management/ftrack/ftrack_unit_tests/ftrack_tests.py", line 16, in <module> seqs = session.query('Sequence where name is "{0}" and project.id is "{1}"'.format('060', project_data['id'])).one() File "C:\Users\tmiko\AppData\Roaming\Python\Python27\site-packages\ftrack_api\query.py", line 167, in one raise ftrack_api.exception.NoResultFoundError() ftrack_api.exception.NoResultFoundError: Expected result, but no result was found. This is the one that is screwing me up - so i'll avoid using this .all() returns: [] So that's a good option as well. If i don't have anything telling ftrack what to return i get a QueryResult object This at least demystifies why i'm getting different results.
  3. Ok I'm learning more about this already. QueryResult happens when i fail to put .one(), first(), or all() on the end of my query. This is going to make a huge difference moving forward. Going through and fixing some of these right now and tightening up my code. Still curious as to if there's another way other than querying and then creating based off the results. But this is getting cleaner!
  4. I want to create a project (or Sequence, or Shot, or AssetVersion, etc....) but right now i'm using all kinds of different ways of checking to see if something exists before i create it. I'm guessing there's some simple way of doing this that i'm just not aware of. For instance. To Create a Project Currently I'm doing something like this: project_data = session.query('Project where status is active and name is %s' % 'cgl_unittest2').first() print project_data if not project_data: project_data = session.create('Project', { 'name': 'cgl_unittest2', 'full_name': 'cgl_unittest2', 'project_schema': project_schema }) Problem is when unsuccessful these queries return: None, QueryResult, or sometimes they return an error. So i'm creating all kinds of workarounds for the fact that there is often different results returned depending on the type i'm querying. is there some kind of 'safe' flag on the create() function or some other way of checking to see if something exists before creating it?
  5. Lorenzo Angeli

    thumbnails

    Hi @guiramalho, I'm in the process of checking if there's any better way of doing the frame extraction, but what you are seeing are the default settings used by Hiero for the PosterFrame (which is what we are currently using internally) There are various ways you can define which frame to be used for now, either on the source clips: https://learn.foundry.com/nuke/content/timeline_environment/ingest/searching_bins.htm Or on the project settings: https://learn.foundry.com/nuke/content/timeline_environment/conforming/project_settings.html I'll reply to your ticket when I've more news about updates on the code side. Cheers. L.
  6. guiramalho

    thumbnails

    Hi @Lorenzo Angeli, this is not what is happening. It is not getting the mid frame, it is getting the first frame of the clip ignoring the edit. That´s why they are all the same. I did sent you an email thru support. Cheers. G.
  7. Last week
  8. @John Su, I've finished off testing now the remote encoding using as example a file (ProRes HQ 422 ) I downloaded from here the encode has been done with the following code: import ftrack_api session = ftrack_api.Session() version = session.query('AssetVersion').all()[-1] version.encode_media('c://path/to/PRORESHQ.mov') The remote encoding task finishes successfully and I can play back the video in the component. Hope it helps. L.
  9. Hi @John Su, please have a look in here, by the end you'll find instructions on how to access the logs. Cheers. L.
  10. Lorenzo Angeli

    thumbnails

    Hi @guiramalho , this seems to be a file from the nuke studio integration . The code for the thumbnail in there is quite simple and pick the mid frame, please feel free to drop an email to support with suggestions on how it should behave and we'll be looking into it. Cheers. L.
  11. guiramalho

    thumbnails

    When I export shots from an sliced clip or a sequence, all the shots gets the same thumbnail.... I just found this comment in the ftrack_base_processor.py about the thumbnail... # TODO: pick frame from mid length clip or cut Having the right thumbnail is crucial ! Any clue how to fix this ?
  12. Oh yes Francois! our setup looks very similar and when staff see that wall of squares all same colour their immediately stop using it, or dont even start. I know this seems like a small issue but for people moving from spreadsheets this is a deal breaker.
  13. Cant wait for the client review tools to be in the web review! Directors and supervisers crying out fro this.
  14. Oh I see. Yes I voted for this back in July last year.
  15. No python api session in browser, the information between the desktop (path) and the server will be transmitted through the event system.
  16. In regards to "The environment variable will tell the session object where to pick up its plugins (the resolve in this case)." does the specific "session object" live in browser? Because it definitely doesn't start locally in any python intepreter as one can browse ftrack web without python installed.
  17. John Su

    Fails to encode media

    Sure. Could you tell me where the log is? Cheers.
  18. Hi @John Su, I'll check this asap. Would you mind sending the logs to support@ftrack.com ? They might contain some sensible information. Cheers. L.
  19. The environment variable will tell the session object where to pick up its plugins (the resolve in this case). The resolve will then submit to the server the information on how to represent the component path through the event I've been linking you previously. Hope it makes more sense this way. L.
  20. The environment variables can affect the local python created session object. But isn't the session that generate the web page on server end? So locally setting ftrack variables won't affect the web page. Is it right? Or did I misuse the word "web"? Just to be clear I mean the ftrack web page interface, not through customized python client.
  21. John Su

    Fails to encode media

    I tried movs with size of 232M, 64M. I can provide log if I know where it is. Let me know if you need it.
  22. Hi @John Su, sounds strange should work, but I'll double check. out of curiosity what size were these files ? Cheers. L.
  23. Hi @John Su, you can find some more information about the plugin ftrack environment paths here. Overall though the env does not have to be known by the server as is up to the session object to discover it and put it to the use. The resolve scripts uses the ftrack events to notify the server about the resolved path of the component . ftrack event system is quite powerful and I'd suggest digging deeper looking in here. You can also find more examples on how to use events in our recipes repository. Hope it helps. L.
  24. Sorry I have to bother you again. Because it still doesn't work, nor did I get the logic. Could you talk a little bit more detail about how the component path in ftrack web page get resolved by script under $FTRACK_EVENT_PLUGIN_PATH? I think that's the part confused me most. ftrack web page is displayed in web browser, the browser might know the environment variable but how does the script get involved?( there's even no python interpreter on the machine that's running the web browser).
  25. Hello, ftrack fails to encode mov file using API. I tried mov encoded with Apple ProRes 4444 and Apple ProRes 422 HQ but both failed. The status shows up "Failed" in Jobs slider. The way I'm encoding it is: asset_version.encode_media(media_path) Also I tried encode a media on ftrack.server but didn't get any luck. It works with pictures though. Any clue? Thanks.
  26. Download 1.2.1 What's new Fix QStringListModel compatibility for PySide2 5.9+.
  27. Lorenzo Angeli

    2.2.2

    Download 2.2.2 What's new Changed: Replace QtExt with QtPy to support latest pyside2 How to install stop ftrack-connect-package remove previous nuke studio plugin from : <ftrack-connect-package>/resource/connect-standard-plugins/ download and uncompress the new version in : <ftrack-connect-package>/resource/connect-standard-plugins/ restart ftrack-connect-package
  1. Load more activity