Ayon Ftrack Sync Events

Hi there,

I already did once the ayon/ftrack configuration like the documentation asks and I saw it working once. But it was in a test project and we kept it in hold until now.
Now testing it again, first of all I got one problem to create the custom attributes - it was saying that already had one attribute with same name. I needed identify via ftrack python api and force the delete to this event work again.
Second the event ‘clean hierarchical custom attributes’ is not working. The code has a bug apparently:

# ayon_ftrack.event_handlers_user.action_clean_hierarchical_attributes.py
class CleanHierarchicalAttrsAction(LocalAction):
    # (...)
    def launch(self, session, entities, event):
        project_id = entities[0]["id"]

        user_message = "This may take some time"
        # This function self.show_message is not finding the "result"
        # as a valid parameter to this function:
        self.show_message(event, user_message, result=True) # <- error here
        # (...)

And third, it’s not showing the “Sync to Ayon” event…I’m trying to debug it but would be amazing if someone help me with that.

I’m using:
server: 1.12.3+202510081341
ayon_ftrack: 1.4.12 and 1.4.11 ( I tested in both versions )

Hello.

This usually happens if ftrack api key used for the action does not have privileges to see existing custom attributes. We can’t do much to prevent it.

Bug indeed, with easy fix. Next time please create an issue in github if possible. Fix PR.

Not sure I understand what do you mean? What event? Where are you looking for it?

Hi @iLLiCiT, thanks for the PR!

About the Sync to Ayon, I meant this event:
https://help.ayon.app/en/help/articles/0639073-ftrack-actions#ez76ryplfqr

Right now I have just these events:

I will check the ftrack api key if that has enough permissions.

I also checked the API key and it has role API that basically has full permission to everything.
So I don’t think it’s related with that.

There are 2 requirements to see Sync to AYON:

  1. Actions has to be showed on project entity.
  2. User showing the action has to have one of roles defined in ayon+settings://ftrack/service_event_handlers/sync_from_ftrack/role_list.

BTW you have enabled experimental actions UI, which might not work for some of our actions. Because you don’t see sync and prepare project, I think your user does not have the right permissions.

That is not true, ftrack does allow to disable read/write for API role on custom attributes.