Leaderboard


Popular Content

Showing content with the highest reputation on 09/22/2016 in Posts

  1. 1 point
    Est

    3dsmax 2017 startup error

    Hi Philip, I maybe know what is it. Could you do a quick test to confirm? In your connect install folder, inside the resource/hook folder, can you edit the ftrack_connect_3dsmax_hook.py file? in line 190, replace 'Path' by 'PATH' and save the file. ftrack_connect.application.appendPath( maxStartupDir, 'Path', ---> 'PATH' environment ) If you close connect and relaunch it, can you start Max? Est.
  2. 1 point
    Sorry, I thought you were launching the action from command line. Try adding your action to FTRACK_EVENT_PLUGIN_PATH instead? This code works for me. import ftrack_api class TestAction(object): identifier = "test_action" label = "Test Action" def __init__(self, session): super(TestAction, self).__init__() self.session = session def register(self): self.session.event_hub.subscribe('topic=ftrack.action.discover and source.user.username={0}'.format(self.session.api_user), self.discover) self.session.event_hub.subscribe('topic=ftrack.action.launch and source.user.username={0} and data.actionIdentifier={1}'.format(self.session.api_user, self.identifier), self.launch) def discover(self, event): items = [{'label': self.label, 'actionIdentifier': self.identifier}] return {'items': items} def launch(self, event): print "Launching the App" return { 'success': True, 'message': 'Action launched successfully.' } def register(session, **kw): if not isinstance(session, ftrack_api.Session): return action = TestAction(session) action.register()