Search the Community

Showing results for tags 'python'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • 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


There are no results to display.

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start





Website URL







Found 7 results

  1. Hello, My Question is: How can I create new entity types using the python api. when i create an new session object with the python api using: session = ftrack_api.Session(server_url=server_url, api_key=api_key, api_user=api_user) I can query all types using: session_types = session.types Now i am checking if all entity types our pipeline requires are present in this session using something like: session_types.get(required_entity) However if the expected entity types are NOT present -> meaning FTrack is not yet configured in the way the it needs to be for the pipeline. I want to create the missing entity types using the python api. In the GUI I would simply create new objects for each missing entity type like this: And then I would create a schema using the required objects / (entity types) and make sure that the projects are always using this schema: But I am having trouble to understand the correct way of doing so using the python api. As far as I understand the entity types are generated dynamically at the beginning of a session. The "StandardFactory" class takes care of it by creating the types specified in the existing "ProjectSchema" 's Workflow like so ? Create a new ProjectSchema? While doing so I pass in the new Entity Types I want to have created with this schema? But how can I define those new entity types? Some informatison from the docs I collected so far: " When a Session is constructed it fetches schema details from the connected server and then calls an Entity factory to create classes from those schemas. It does this by emitting a synchronous event, ftrack.api.session.construct entity-type, for each schema and expecting a class object to be returned. " Regarding working with Project Schema's I only found these small snippets from the docs which do NOT show how to create a new schema: The information provided in the "Working with entities - Customising entity types" also links to this page "Understanding sessions - Configuring plugins" and the provided python file "" shows how to register a plugin but does not show how to actually create a new entity type. I hope someone can point me to the right direction! Thank you in advance, Lukas
  2. Hi. Is it possible to request a Pdf Export of a project, via python? I hadn't found anything related about export features in the api documentation. Thank you very much
  3. Hey, We're looking to get some better integrations with ftrack into our own offline interfaces of our pipeline. At this moment we're working off of a great foundation in the studio with an explorer (browser), asset loader, app launcher and lots of other tools. The intentions now are to mix these up with ftrack, like pull thumbnails from ftrack and push information to ftrack upon publishes, etc. As such I'm wondering what way we should go about this. Widgets Would we be designing our own Widgets using the API completely from scratch? Or can we use widgets from connect in our own interfaces? Are the widgets in connect intended to be used that way? Things that would potentially make it easy to display thumbnails of an asset (or other information)? Connect Would the integrations require a running connect? Or when would we use it specifically? Integrating ftrack into our tools What's the best way to go about this? Any tips from the community are also very welcome! It would be great to have informational up-to-date widgets that are all built to be smoothly cached internally. Yet at this stage it's hard to see if I'm building from the ground up or if there are elements I can connect together to get up and running faster (and even share back?)
  4. Hello, New to ftrack and its nomenclature. Does any one have a good workflow for creating and testing new event plugins? I currently find my self having to create a new shot everytime i want to test new code in the plugin. I also noticed that i cant query an event, if i try : [e.get('id') for e in session.query('select id,data from Event')] the ids are int's and not the database object id that the event entity like other ftrack entities use. Any help or an arrow in the right direction would be great. Cheers Kym
  5. In a previous post, I suggested changing some basic UI behavior in Ftrack. Mattias suggested that I try to make the changes myself (I didn't even realize that was an option!). While incorporating the ftrack-connect clone into my workflow, I came across the concept of submodules for Git. After a ton of trial and error I've finished transitioning my connect project to successfully launch my custom actions from this new ftrack-connect submodule. Now I'm running into some issues with missing dependencies when launching Maya (I haven't tried other programs yet). I'm just trying to launch Maya without any errors before I incorporate all of my custom Maya launching code and env variables. Right now, Maya launches successfully, but I'm getting these errors: # Error: line 1: ImportError: file C:\Program Files\Autodesk\Maya2016\Python\lib\site-packages\maya\app\general\ line 15: DLL load failed: The specified module could not be found. # // Error: file: C:/Program Files/Autodesk/Maya2016/plug-ins/xgen/scripts/igInitialize.mel line 63: ImportError: file C:\Python27\lib\ctypes\ line 10: DLL load failed: The specified module could not be found. // // Error: Unable to execute igInitialize.mel. // // Error: line 0: ImportError: file C:\Python27\lib\ctypes\ line 10: DLL load failed: The specified module could not be found. // // Error: Unable to execute xgen.mel. // // Error: file: C:/Program Files/Autodesk/Maya2016/plug-ins/xgen/scripts/xgenUI.mel line 198: Cannot find procedure "registerXGenPrefTab". // // Error: ImportError: file C:\Python27\lib\ctypes\ line 10: DLL load failed: The specified module could not be found. // These directories already exist, but they're not being picked up. I'm already adding sys.path to the PYTHONPATH like so:: env = os.environ.copy() env['PYTHONPATH'] = \ ';'.join(sys.path) + \ ';path/to/ftrack_python_api' + \ ';path/to/another/module
  6. Hey guys, I just tried installing ftrack-connect through `pip install --target=C:\work\pipeline\dev\app\python git+`. The installation seemed to go smooth, but after the installation I tried running the ftrack connect service with: `python -m ftrack_connect`. That gave me the following error: ``` Traceback (most recent call last): File "C:\Python27\lib\", line 162, in _run_module_as_main "__main__", fname, loader, pkg_name) File "C:\Python27\lib\", line 72, in _run_code exec code in run_globals File "C:\work\pipeline\dev\apps\python\ftrack_connect\", line 29, in <module> import ftrack_connect.ui.application File "C:\work\pipeline\dev\apps\python\ftrack_connect\ui\", line 14, in <module> import ftrack_api._centralized_storage_scenario ImportError: No module named _centralized_storage_scenario ``` Any idea what might be going wrong? -- Edit: How can I do code highlighting here on the forum?
  7. Hi Is there any posibilities to get get Linked Asset Builds from shot? Acording to Api reference - there no such atributes of classftrack.Shot.