Search the Community

Showing results for tags 'ftrack api'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Company news
    • General announcements
  • ftrack Studio (main app)
    • General discussion
    • Feature requests
    • API
    • Help
    • Actions and Widgets
    • ftrack Go
  • ftrack Review
    • General discussion
    • Feature requests
    • Help
  • Connect and plugins
    • General discussion
    • Connect package releases
    • Feature requests
    • Help
    • Connect plugins releases
  • Advisory Forum
  • Tech preview
    • API
    • New integrations
    • Studio overview
    • ftrack Review

Categories

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


AIM


MSN


Website URL


ICQ


Yahoo


Jabber


Skype


Location


Interests

Found 4 results

  1. Hi, I know how to add and customize action in ftrack, but I was wondering is there a way to play an uploaded media with an external player (in order to play correctly a 360° video degree), without using actions. If possibile to add a custom menu through the ftrack api next to "Launch Web player, "Launch RV", "Launch HieroPlayer", so I can launch my custom application to play that uploaded media? Is good for me just know if possibile to do that, so I can start to work on it! Thanks again for your great work. Andrea
  2. Hi, I cooked up a script to delete File Component from Note's belonging to a specific Project and has worked out fine, but it doesn't seem to reflect on Ftrack Storage Usage. Query for NoteComponent doesn't return anything anymore and I don't understand where NoteComponent get it's storage space from if it's not in Ftrack Storage. def get_filter_string(entity_ids): return ', '.join( '"{0}"'.format(entity_id) for entity_id in entity_ids ) note_entities = [] project_component = session.query('select name, descendants from Project where id is "{0}"'.format( entity_id )).one() note_entities.append(project_component['id']) for hierarchy_item in project_component['descendants']: note_entities.append(hierarchy_item['id']) note_components = session.query('select component, component.file_type, component.name ' 'from NoteComponent where note.parent_id in ({0})'.format( get_filter_string(note_entities) )).all() # Download happens from note_components information then delete. for note_component in note_components: session.delete(note_component['component']) session.commit()
  3. Hi, I'd like to query all components published under a certain drive letter. Is there a way to do this? My best guess at this point would be a query similar to: 'Component where component_locations.resource_identifier any (contains: "G:/")' which I realize is not syntactically correct but hopefully you get the drift... Thanks! -Mark
  4. 1) I'm having trouble getting the criteria system to work. When the tool starts up, in the main window module queries all of the active projects and populates a QTreeView: session = ftrack_api.Session() dir_contents = [] for project in session.query('Project'): dir_contents.append( project ) When a user selects a project to work with, another module creates a tab and queries the project data- populating this new tab with directory hierarchy, tasks, thumbnails, notes, etc. I was able to begin querying a project's ftrack data by using the legacy method getProject('string'), but I'm having trouble getting the equivalent to work using the latest API. This is what I have right now: selected_index = self.tab_projects.tv_projects_view.selectedIndexes()[0] session = ftrack_api.Session() project = session.query( 'Project where name is "{0}"' .format(selected_index.data()) ) The value for selected_index.data() is just a string like 'MY_PROJECT_NAME'. I keep getting this error: QueryResult.__getitem__ in query line 89: list indices must be integers, not str. 2) Also, if I'm querying, should I be setting a session variable in every module that queries, or should I be doing this globally somewhere? Thanks! ----------------EDIT------------- 3) So I figured out from here that I needed to add .one() at the end of the query like this. I guess it's a python method to only return 1 value. Why wouldn't this query return just 1 value by default though? project = self.session.query( 'Project where name is {0}' .format(selected_index.data()) ).one()