Jump to content


  • Content Count

  • Joined

  • Last visited


  • Rank

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I'm writing an action script that get as input all tasks whose parent(Asset Build) have a specific value in a custom attribute. Ideally, the right value of the custom attribute would be found in the Filter button/option from the site. The first problem is that i want to be able to query all tasks that have the right filter value using the API's expression language. Something like this: filtered_value = ??? #somehow get the filter from the site list_of_tasks = session.query('Task where parent.custom_attributes.my_custom_attr is {0}'.format(filtered_value)).all() The second problem
  2. version:
  3. The one that comes with the lastest version of ftrack connect.(3.3.11+)
  4. Hi i just followed the current example but the key ['task_templates'] don't exist inside project['project_schema'].In the site i have access to those task templates but i can't find them via the python api.
  5. I tried to create an Asset,make the shot be the parent of it and send the asset to that function but the same error is happening. Here is the code: shot = session.query("Shot where name is \"" + "EP101_SHOT0010" + "\"").first() newAsset = session.create("Asset",{'name': "101_010",'type': "Shot",'parent': shot}) task = session.query("Task where parent.name is \"" + "EP101_SHOT0010" + "\"").first() sendVideo(newAsset,task) #same function as in OP. Any idea of what is missing? thanks! Ottoni.
  6. Oh yeah "asset" is actually shot. My function actually receive the shot from outside but to simplify the OP sample i put it inside the function and forgot to change the name. I'm going to edit the OP.
  7. Hi! I'm trying to send a .mov video of a shot to ftrack using the python api but i'm having some problems my code: def sendVideo(asset,task): version = session.create('AssetVersion', {'asset': asset,'task': task}) server_location = session.query('Location where name is "ftrack.server"').one() filepath = "my/path/to/videos/101_010.mov" component = version.create_component(path= filepath ,data={'name': '101_010.mov'}, location= server_location) shot = session.query("Shot where name is \"EP101_SHOT0010\"").first() task = session.query("Task where parent.name is
  8. Thanks that gave me some insight about actions. What i really need though is to understand how to integrate my plugins with ftrack connect. For instance, i have a hiero plugin that i want to be load when users launch hiero/nuke studio from both connect and the site. I'm following this page's example: http://ftrack-connect.rtd.ftrack.com/en/latest/developing/tutorial/adding_a_location.html i came up with this: def my_callback(event): environment = event['data']['options']['env'] ftrack_connect.application.appendPath("<my-plugin-path>",'HIERO_PLUGIN_PAT
  9. Hi Thanks i was able to solve this problem. But i still don't understand how can i have my own version of your plugins. Let say i want to modify your nuke studio plugin without changing your code. How do i register to connect that it should use my scripts(in some folder in my system) instead of yours(in ftrack_connect)? Thanks.
  10. Hi! I trying to learn how to make my own hooks/actions and i'm following this tutorial: http://ftrack-connect.rtd.ftrack.com/en/stable/developing/tutorial/custom_applications.html After creating a houdini hook the tutorial says i have to override some ftrack modules that,in my case, are zipped in C:\Program Files (x86)\ftrack-connect-package-0.6.2/common.zip. Thing is, i don't want to risk ovewritting the base code(especially because i'm just learning how it works) so my question is: is there a way to make a modified version of the default python scripts (like ftrack_conn
  • Create New...