Lucas Correia

  • Content count

  • Joined

  • Last visited

  • Days Won


Lucas Correia last won the day on November 11

Lucas Correia had the most liked content!

About Lucas Correia

  • Rank
    ftrack developer

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1,122 profile views
  1. Hi, What issues where you having with attaching a screenshot? I believe it should be possible to do so. I tried reproducing the issue, but wasn't able to do so directly. Can you send us an email at support at and include the screenshot to help us in troubleshooting the issue? Regards, Lucas
  2. Hi Luigi, Thank for the feedback! Just to make sure I understand you correctly, you would like to be able to have custom attributes on calendar events (the striped blocks in overview) and be able to set these when creating events in the UI. Is that correct? In your case, are you looking to store any specific information on the events or is it more that you would like the flexibility to do so in the future? Regards, Lucas
  3. Query Calendar events

    Hi, There is currently no list available. We plan to create a page where you can explore API entities and attributes, but haven't gotten around to it yet. In the meantime, you can use the following code to print all entities and attributes: for name, entity_type in sorted(session.types.items()): print name for attribute in sorted(entity_type.attributes.keys()): print '\t {} ({})'.format( attribute, entity_type.attributes.get(attribute).__class__.__name__ ) print '' Read more in the tutorial here. Regards, Lucas
  4. Connect Not working in Maya 2018.1 and Adobe 2017 series

    Hi, For Adobe, Did you try using the manual installation using ZXP installer as mentioned above? For Maya, what issues are you seeing? Does the integration appear in ftrack Connect? Are you able to launch the action? Regards, Lucas
  5. exporting time tracking report buggy

    Hi Luigi, This is a known limitation and stated in the window when exporting the report. Regards, Lucas
  6. Query Calendar events

    Hi Laura, Sure, they are exposed through the API as CalendarEvent and CalendarEventResource entities. Here is an example query to look if someone is booked on a particular project during an interval (in server time/UTC). session.query( 'CalendarEventResource ' 'where is "test" ' 'and resource[User].username is "lucas.correia" ' 'and calendar_event.start <= "2017-11-09T23:59:59" ' 'and calendar_event.end >= "2017-11-09T00:00:00" ' ).first() Regards, Lucas
  7. Create version 0 in Ftrack

    Hi Remus, When creating a new version, it seems like `0` is treated as None and the resulting AssetVersion will have the version number set to the next available version number or 1. After the version has been created it is possible to update the version number to set it explicitly as 0. asset_version = session.create('AssetVersion', {...}) session.commit() asset_version['version'] = 0 session.commit() Regards, Lucas
  8. Linking or deep copy of Asset Builds

    Hi Lori, I see. The objects returned from the legacy API and the new API are not compatible. See migrating from the legacy API for more information. For more information on the API in general - see To get all asset builds on a project with the code "my_project", you can use the following query: asset_builds = session.query('AssetBuild where is "my_project"') Regards, Lucas
  9. Linking or deep copy of Asset Builds

    How are you creating the link and what error are you seeing? Also verify that the entities you are linking are what you expect the variables to be. I've verified that the following works as expected. asset_build_1, asset_build_2 = session.query('AssetBuild limit 2')[:] assert isinstance(asset_build_1, session.types['AssetBuild']) assert isinstance(asset_build_2, session.types['AssetBuild']) asset_build_link = session.create('TypedContextLink', { 'from': asset_build_1, 'to': asset_build_2 }) session.commit() Regards, Lucas
  10. status change in linked version not working

    Hi, Thanks for reporting the issue. Regards, Lucas
  11. status change in version view not working

    Hi Luigi, Thank you for the feedback! Regards, Lucas
  12. Hours in My Tasks

    Hi Toke, Thanks for the feedback! Regards, Lucas
  13. Time logging

    Hi Chris, It should be possible to use an event listener to automate starting a timer for a user when a task's status is set in progress. The reason that we don't do this automatically is that there can be several situations where you do not want the timer started automatically, and it is hard to know when this is. An event listener is a small python script that can be used to subscribe to changes in ftrack and perform custom logic such as updating a status, starting a external process or triggering a user interface. Here are some useful resources for setting up an event listener: * Developer hub with introduction to the API * How to subscribe with the API * Information about the update event * Example event listeners If you are not interested in logging time, but rather want to see how long a particular task has been in a certain state you can look at querying `Event` objects using the API. There is a snippet with some examples here. You probably want to query for action=change.status.task and parent_id=the task's id. Regards, Lucas
  14. Connect Not working in Maya 2018.1 and Adobe 2017 series

    Hi, For the adobe integration, Adobe Extension Manager has been deprecated. You should use Adobe Add-ons to manage extensions for the 2015 release and newer of Creative Cloud. Please see the instructions in the link Mattias sent you. If you are having issues, try the manual approach using ZXP installer (You can download the extension from or see this troubleshooting guide from adobe. Regards, Lucas
  15. How to tell who changed status of shot

    Hi Mark, In an ftrack.update event the user who changed the status will be available in the source data. user_id = event['source'].get('user', {}).get('id', None) if user_id: user = session.get('User', user_id) To get who changed an entitie's status after that, you can query `Event`, filtering on the entity id and action='change.status.task'. See some examples of this in this snippet: API Examples - Working with events. Regards, Lucas