Search the Community

Showing results for tags 'type'.



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 8 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. " http://ftrack-python-api.rtd.ftrack.com/en/stable/working_with_entities.html#customising-entity-types 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: http://ftrack-python-api.rtd.ftrack.com/en/stable/example/project.html?highlight=schemas 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 "cunstruct_entity_type.py" 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. 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".
  3. Greetings from Post-production facility in NYC. 40+ operators/machines and several rooms. Querying a view that allegedly should be functional between the two views. Thank you in advance!
  4. Hi all, I was wondering if there is a reason why we are allowed to create types, asset types, statuses, etc using an existing name. Isn't it confusing to have this enabled? Cheers!
  5. Hi all, I try to delete a type which is not added to any workflow schema. Unfortunately I get the error message: "A server error occurred. Please try again or contact support." I checked the ftrack.log and I get this: ./ftrack.log: File "/opt/ftrack/environments/ftrack/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 117, in delete_obj ./ftrack.log: cached_connections, mapper, table, delete) ./ftrack.log: File "/opt/ftrack/environments/ftrack/lib/python2.7/site-packages/sqlalchemy/orm/persistence.py", line 694, in _emit_delete_statements ./ftrack.log:IntegrityError: (IntegrityError) (1451, 'Cannot delete or update a parent row: a foreign key constraint fails (`ftrack`.`project_scheme_override`, CONSTRAINT `project_scheme_override_ibfk_1` FOREIGN KEY (`typeid`) REFERENCES `task_type` (`typeid`))') 'DELETE FROM task_type WHERE task_type.typeid = %s' ('15c977fc-b93e-11e5-88e0-005056a76761',) I queried the database and in project_scheme_override table there are still entries with typeid '15c977fc-b93e-11e5-88e0-005056a76761'. How can I delete the type correctly? Best, Remus
  6. I'm trying to figure out how to query what an item is based on user selection. In my tool, a user might be selecting a Sequence, Task, Shot, etc and I'd like different things to happen based on their selection. Is there any way to query this with the new API? The docs seem to just show how to query something only if you know exactly what entity type you want. I have this right now: dir_contents = [] for item in project['children']: dir_contents.append( item ) for item in dir_contents: item_name = item['name'] item_type = item['context_type'] item_id = item['id'] When I tested this code out by selecting a Sequence entity, I printed out every attribute and expected to find 'sequence' as a value somewhere, but only the attribute, context_type, resulted in something close to what I was looking for ( print item['context_type'] resulted in 'task' as a value ) Thanks for any help!
  7. Hello, we have a couple of Asset builds, grouped default by Type (Character, Environment, etc - please have a look at Attached picture). When we select "Asset builds" we have all the asset builds created in the View. We would like to have the option to select only "Character folder" and have in the View only the Character Asset Builds. Best regards, Remus
  8. Hello, we try to filter by Type in Asset builds, but unfortunately, it doesn't work. Kind regards,