I create tasks using EntityHub:
hub = EntityHub(project_name)
hub.add_new_task(task_type or 'Generic', **kwargs)
hub.commit_changes()
`kwargs` :{
'attribs': {
'cerebroId': 2927339757858206004,
'cerebroPath': '/TEST/SEQ/USD/sh_0010/lighting'},
'name': 'lighting',
'parent_id': '1a576758550511f1b124010101010000'}
Problem: attributes in the created tasks, such as Start Frame and End Frame, sometimes inherit values from the parent task even though I do not pass them explicitly, and sometimes they do not.
Why does this happen?
How can I control this behavior?
I think this behavior is from attributes themselves. not related to how you create the entity, e.g. via ui or api.
some attributes have inherit enabled. Attributes - AYON
Good afternoon,
Inheritance is enabled in both cases. However, sometimes the attribute is created without inheriting the value.
Could this be related to Anatomy settings or some other global attribute settings?
Do you mean an attribute with inherit enabled is created without inheriting the value?
Does it happen from UI as well or only the api?
Could you provide any reproducible? maybe server version as well.
(I used to create entities using this snippet create_project_hierarchy_with_folders_tasks but didn’t face this issue before.)
This issue only occurs when creating via:
hub.add_new_task(task_type or 'Generic', **kwargs)
hub.commit_changes()
It does not happen when creating through the UI.
Server 1.5.6+202411141817
This server version is way behind.
Could you update your server and try again?