Search the Community

Showing results for tags 'name'.



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 2 results

  1. If the task type is the default one, the name of the task is always taskname. By creating the new task (If the task is the default one) the name is not automatically changing like the other tasks. It is showing up as "taskname".
  2. 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()