Rory

Members
  • Content Count

    19
  • Joined

  • Last visited

About Rory

  • Rank
    Member

Recent Profile Visitors

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

  1. Rory

    Importing Modules

    Thanks Lorenzo - Added the PYTHONPATH as a environment variable and the terminal python3 finds everything fine. But I still get :- 2020-07-23 11:55:05,089 - ftrack_api.plugin.discover - WARNING - Failed to load plugin from "/Users/rory/Library/Application Support/ftrack-connect-plugins/ftrack-connect-example/hook/ftrack-connect-example_hook.py": No module named "..." Is there a caching or something that needs to be cleared ? Thanks,
  2. Rory

    Importing Modules

    Morning All, Not sure if I am missing something - I have an action where I am trying to call an in-house module for folder creation on disk. This requires an import of that module that I setup with sys.path.append or the like for Python3.8. But it just keeps failing ? Any thoughts ? Thanks
  3. Rory

    Action on Shot

    Thanks so much - great help
  4. Rory

    Action on Shot

    def discover(self, session, entities, event): '''Return True if we can handle the discovery.''' # TODO: Modify to fit your needs. # Example, only allow a single asset version as selection. if len(entities) != 1: return #entity_type, entity_id = entities[0] entityt = self._get_entity_type(entities[0]) if entityt != 'Shot': return return True So from the Handler example - this seems correct ?- using the incoming entities ? But that still doesn't work ?
  5. Rory

    Action on Shot

    entity_type, entity_id = entities[0] entity = session.get('TypedContext', entity_id) entitytype = self._get_entity_type(entity) Hi Lorenzo, I get NoneType returned to entitytype here ? What am I missing ? Thanks
  6. Rory

    Action on Shot

    Thanks so much Lorenzo - Will take a look asap.
  7. Rory

    Action on Shot

    Hi All, I am writing an action to create folder structures on disk based on some Ftrack details. I am trying to attach the action to a Shot. Below is a snippet of the 'discover' method. Why would the entity have to return true for 'task' to get Shot ? This works for Sequence and Shot but I am confused as to why the entityType to test is task and not shot ? def discover(self, event): '''Return action config if triggered on a single asset version.''' data = event['data'] '''If selection contains more than one item return early since this action can only handle a single version.''' # self.logger.info(event[]) selection = data.get('selection', []) self.logger.info('Got selection: {0}'.format(selection)) for item in selection: if item.get('entityType') == 'task': return { 'items': [{ 'label': self.label, 'description': self.description, 'actionIdentifier': self.identifier }] }
  8. Hi All, I am trying to create a web viewable clip from the Nuke ftrack Publish Node ? How do I get it to create the Web Review version on ftrack.server and in my central storage location. or even just as a web viewable component ? Thanks, Rory
  9. Got it, Thanks - Works great!
  10. Yes - sorry and also added the modify_launch method from the readme.
  11. Thanks, I added ftrack.EVENT_HUB.subscribe( "topic=djvview.launch", modify_launch) to the register method or should it be in the launch method ?
  12. Got it to work - Thanks
  13. Hi, I am trying to implement this plugin, but can't seem to get a list of files to pick from ? Should it show a list of components attached to the task ? Thanks, Rory
  14. Hi, Just following up on this ... How would I add this functionality to Nuke Studio - ? As far as I can tell I would need to change the content of common.zip ? or am I missing something? Thanks Rory