Jump to content

How to configure actions for ftrack-connect correctly


Remus Avram

Recommended Posts

Hi all,

We would like to launch applications through ftrack web interface (actions) using ftrack-connect.

If only me launch ftrack-connect, everybody else can already use all the actions available. If others launch an application, then the application will launch on my computer in my session.

If another user launch ftrack-connect and start an application, then the application will start on all computers which have ftrack-connect app running.

Also, the application will show up in the Action UI as many times as the number of computers running ftrack-connect.

I also checked this thread:

Unfortunately, it worked if I launch the application through "Ftrack-Connect" UI, but not through Ftrack Web interface.

Thanks for your support!

Link to comment
Share on other sites

Hi Remus,

It sounds like you should be listening only to a specific user when discovering and launching the events. I.e. the user logged into ftrack web interface = the user logged into Connect.

In Connect Nuke integration we do it like this for discover and launch (legacy api):


        ftrack.EVENT_HUB.subscribe(
            'topic=ftrack.action.discover and source.user.username={0}'.format(
                getpass.getuser()
            ),
            self.discover
        )

        ftrack.EVENT_HUB.subscribe(
            'topic=ftrack.action.launch and source.user.username={0} '
            'and data.actionIdentifier={1}'.format(
                getpass.getuser(), self.identifier
            ),
            self.launch
        )

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...