Jump to content

lukas g

  • Content Count

  • Joined

  • Last visited

About lukas g

  • Rank

Recent Profile Visitors

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

  1. Thank you for your quick reply. I excpected the ftrack server in UTC but I am afraid that i am seeing a 34sec time difference between utc and the creation dates of my ftrack entity. (They seem to be created in the future based on the "created_at" attribute from a Event query I am doing to check it.) Maybe I am doing something wrong but it worked out for the last months, only since yesterday I had the time difference issue. 1. I am creating and committing some new entity. 2. I am doing a query to get the event where the "parent_id" is the same as the id of the entity i just created.
  2. Hello there i am looking for a good way to Query Ftrack Server time. Right now i am doing it in a hacky way by committing an entity and query its creation date with: "Event where parent_id is {} order by created_at desc".format(entity.id) But i am looking for some query for just the current time without creating something first, as it introduces a slight time delay and isn't a nice practice. Thank you in advance, Lukas
  3. Thanks for the info. I thought it would be possible to have an attribute on a user which was only available in a project with the supplied project_id.
  4. Hello, I am trying to create an numerical custom attribute for Users but only for a specific project id. I am creating the attribute this way: session.create("CustomAttributeConfiguration", {"project_id": current_project_id, "entity_type": "user", "type": custom_attr_type, "label": "TEST", "key": "test", "default": -1, "write_security_roles": [security_role], # all roles "read_security_roles": [security_role], # all roles "config": json.du
  5. Hello, recently I am running into the problem that I am getting a Symbol object instead of the object i actually wanted on from my session. Mostly it happens when i am using functions from a Project object like project.project_schema. It returns NOT_SET. I tried to clear the session cache before. And I also tried to populate it manually using session.populate(project, "project_schema") but it did not help. How can I enforce a new query to my session and get a proper return value. Thank you in advance, Lukas
  6. Thank you very much. that was easy I did not even think about the regular query to get them
  7. Hey, I need to query all priorities and also set the priority of entities. sth. like thsi maybe: priorities = session.get_priorities() ? entity["priority"] = priorities[0] Best Lukas
  8. Hi Mattias, it would be great if you could give me more information about your "popup dialog" suggestion and how it could be realized. And maybe you can tell me if there are plans for implementing such a feature like making attributes mandatory? Best regards Lukas
  9. Hi, is it possible to make a custom attribute mandatory, so the user has to give it a value on creation using the Ftrack web gui? For example I want to have a text attribute like "my_extra_name" to be a mandatory information which the user has to supply on creation through the gui. Right now i see two ways for creating new DB instances of my object types but non forces the user to supply my extra data. (The first one at least offers the possibility to directly set the value for a custom attribute and makes i more prominent but it is not mandatory. The Second way does n
  10. lukas g

    Datetime Field ?

    Hi Mattias, the event query tip was very helpful! Thanks a lot for that. Now i am able to compare all DB entries with each other based on their latest update Regarding the arrow date issue. I was not able to get it to work with my custom attribute (But right now i don't rely on the custom date attribute anymore as i am using the nice event query)
  11. lukas g

    Datetime Field ?

    Is there a way to access the information when a database entry has been modified? (at which datetime the entry has been edited)
  12. lukas g

    Datetime Field ?

    Hello, I need to sync parts my ftrack database with parts of my inhouse database. For this reason I need support for a timestamp (Date AND time) which gets updated when a field has last been changed. How can i put datetime information into the ftrack database? The custom_attributes support the date field and if i query it i receive an arrow object. But when i try to set it to a new datetime i can only set it with a date but not with a time information. if i try to set it with time information i get an error: ServerError: Server reported error: IntegrityError(Custom attribute valu
  13. Maybe there is another way of finding out which object types are assigned to my project so i can prevent a ServerError like this from happening: "ServerError: Server reported error: ValidationError(Object type u'Shot' cannot be created on project u'Lukas Dev'.)" The only solution i found for now i to try to create the desired types on startup to check if i can create them and catch the server error and show it to the TD to properly configure the ftrack project.
  14. Hello, I need to write some checks using the python api to make sure the current ftrack project is configured correctly. There fore i need to query the currents project Project Schema and check its configuration. Specifically: I need to query the assigned Objecty (ObjectTypes) of a Project Schema. I can access the the Types and objects with 'ProjectSchema.get_types()' as well as the statuses an by calling 'ProjectSchema.get_statuses()' but i can't find a way to actually figure out if an object (ObjectType) is assigned to the list of objects of the particular Project Sc
  15. Hi Mattias, thank you for the quick reply and the welcoming That's unfortunate to hear not having access through the api for proper entity configuration. I can see this not being an easy task to tackle, hiding the underlying complexity from the api users but still giving enough control for flexible configurations. Do you have any information about when this might be addressed? (Talking about just a couple of months or more like a year or so?) Best Lukas
  • Create New...