natasha

Members
  • Content Count

    11
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by natasha

  1. Hi, Is there a way to export an excel sheet from Ftrack that only contains a list of shots with their start and end dates? I can export an excel document with start and end dates per task, but when I do an export with the 'shots' view in the Ftrack spreadsheet, the start and end date columns are blank. Thanks, Natasha
  2. Hi, this is something that we would be interested in as well. Can I also jump onto the beta testing bandwagon?
  3. 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()
  4. Would also appreciate an invite: natasha@locovfx.com
  5. When you register the launch event add the source.user.username so that the action only launches for that user. self.session.event_hub.subscribe( 'topic=ftrack.action.launch and source.user.username={0} ' 'and data.actionIdentifier={1}'.format( getpass.getuser(), self.identifier ), self.launch )
  6. Try this instead def register(session, **kw): if not isinstance(session, ftrack_api.Session): return action = TestAction(session) action.register() session = ftrack_api.Session() register(session) session.event_hub.wait()
  7. I was just about to comment saying I got it working with ftrack jobs. In case anyone else comes looking for the same thing, I referenced these: https://bitbucket.org/snippets/ftrack/nKoB#file-note_on_multiple_entities_action.py https://bitbucket.org/tokejepsen/ftrack-hooks/src/8c822233a35dd0be71194b4ada9064fbf8839eb4/delivery.py?fileviewer=file-view-default#delivery.py-58
  8. I have written a custom action to upload a reference movie clip to a shot in ftrack. Once the action is launched, it creates a movie from images on disk and then uploads this movie as an attachment to the shot. After the action is launched, the movie creation and upload runs asynchronously. What's the best way to give feedback to the user regarding the asynchronous processes? I can output messages to the terminal, but an artist may not look at their terminal or even have it open. How can I do I give feedback in the ftrack web UI? Thanks, Natasha
  9. Thank you so much!! That worked perfectly!
  10. Hi, I'm trying to upload media to my local ftrack server. What API commands can I use to do this? I know I can't use ftrack.Review.makeReviewable(version, filePath) since I have a local ftrack server. I've also looked at http://support.ftrack.com/customer/portal/articles/1405640 which tells me how to make an already uploaded file reviewable on the web. However it does not mention how I can upload the file to the server. Do I need to use a seperate ftp service? Currently the only way I can upload media is via the web interface. I'm stuck at the same place as mentioned in this post: http://forum.ftrack.com/index.php?/topic/44-uploading-media-to-ftrackreview-via-api/?p=1162 Please help!
  11. I've downloaded and installed the ftrack_connect executable. When I try and sign in into the app using my server uri, username and api key, I get the following error: ERROR:root:Logging an uncaught exception Traceback (most recent call last): File "C:\Python27\lib\site-packages\ftrack_connect\ui\application.py", line 165, in loginWithCredentials import ftrack File "C:\Python27\Lib\site-packages\ftrack\ftrack.py", line 20, in <module> from FTrackCore import * File "C:\Python27\Lib\site-packages\ftrack\FTrackCore.egg\FTrackCore\__init__.py", line 8, in <module> File "C:\Python27\Lib\site-packages\ftrack\FTrackCore.egg\FTrackCore\api\client.py", line 23, in <module> File "C:\Python27\Lib\site-packages\ftrack\FTrackCore.egg\FTrackCore\api\xmlserver.py", line 149, in __init__ raise FTrackError("Unable to connect on " + url)FTrackError: Unable to connect on locovfx.ftrackapp.com/client/ I'm just starting out with the ftrack api, so any help would be appreciated!