Lucas Correia

  • Content count

  • Joined

  • Last visited

  • Days Won


Lucas Correia last won the day on November 11 2017

Lucas Correia had the most liked content!

About Lucas Correia

  • Rank
    ftrack developer

Profile Information

  • Gender
    Not Telling

Recent Profile Visitors

1,175 profile views
  1. How to run ftrack-javascript-api-example-react

    Hi, That is correct, if you are cloud-hosted or run the server over HTTPS/SSL, the dashboard widget must also be served over SSL due to the browsers security restrictions. For development, you could run a SSL proxy in front of the development server. To host the built widget, you can google for "static website hosting" for alternatives. It should be possible to host it on AWS S3, Google's storage service, github, etc.. I believe you can use e.g. dropbox for static website hosting as well. Regards, Lucas
  2. How to run ftrack-javascript-api-example-react

    Hi, Thanks for showing interest in the widget examples. To run the example you linked to in development mode, install the dependencies (`npm install`), and then start the development server using the following command and opening a web browser on port 8001. npm start To build a a production version, you can run `npm build`. The example contains a very minimal webpack configuration, which can be extended. The example can probably be rewritten using create-react-app to avoid having to deal with build configuration etc.. Interesting parts of the example are: Setting up the Javascript API using injected credentials in index.js Fetching and displaying notes in the Notes component. Regards, Lucas
  3. ftrack logo as attachment in mails

    Hi Luigi, Sorry for the late reply. I can confirm that the (old) logo is attached, while it shouldn't be. We'll address this in an upcoming release. Regards, Lucas
  4. 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
  5. 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
  6. 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
  7. 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
  8. exporting time tracking report buggy

    Hi Luigi, This is a known limitation and stated in the window when exporting the report. Regards, Lucas
  9. 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
  10. 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
  11. 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
  12. 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
  13. status change in linked version not working

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

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

    Hi Toke, Thanks for the feedback! Regards, Lucas