• Content Count

  • Joined

  • Last visited

About raul1st2002

  • Rank
  • Birthday November 17

Profile Information

  • Gender

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Hi Toke, Thank you for sharing this! I've been already using this method. But before I release the action, I still want to make some tests with connect to ensure everything works properly for the artists.
  2. Hi Mattias, I mean searching the paths and registering actions. It's helpful for debugging.
  3. Hi, It would be great if connect has a function to reload actions without relaunching. Thank you!
  4. Hi guys, I'm writing an action that opens the file path for a selected entity. When I launch the action, it acutually opens the file exploerer on every computer which is running ftrack connect. How can I restrict the command only excutes on the local caller? Thank you for your help! My code ----------------------------------------------------------------------------------------------------------------------------------- def register(self): self.session.event_hub.subscribe('topic=ftrack.action.discover', self.discover) self.session.event_hub.subscribe('topic=ftrack.action.launch and data.actionIdentifier={0}'.format(self.identifier), self.launch) def discover(self, event): # Check ftrack user == system user connect_user = event['source']['user']['username'].split('@')[0] sys_user = getuser().split('@')[0] if connect_user != sys_user: return selection = event['data']['selection'] if len(selection) != 1: return return {'items': [{'label': self.label, 'description': self.description, 'actionIdentifier': self.identifier}]} def launch(self, event): path = utils.get_entity_root(self.entity) if os.path.exists(path): webbrowser.open(path) os.system('xdg-open "%s"' % path) return {'success': True, 'message': 'Success'} else: return {'success': False, 'message': 'No such directory.'}
  5. Hi, Is it possible to use a custom key when creating a component? Something like this: component = version.create_component(path=path, data={'name': name, 'custom_attributes': {'key': value}}, location=projects_location) In my structure I can't get it with entity['custom_attributes']. The key doesn't exist. Thank you for your help!
  6. Thank you Mattias. I actually followed this section: http://ftrack.rtd.ftrack.com/en/3.3.25/developing/reviewing/publishing_components_for_review.html That solved my problem. It will be great if those two api docs can be combined. It's confusing when having two docs covering different aspects of the same api.
  7. Hi, I wonder how can I make an AssetVersion reviewable with the new API. I read the forum and found the old api has a makeReviewable method: ftrack.Review.makeReviewable(version, filePath) But I cannot find a similar one in the new API. I also tried manually adding a custom component with a name of 'ftrackreview-image' (which I found in a reviewable version published using ftrack connect). That doesn't work. Is this possible to do this without import the old api? Thank you for your help! Ding