Jump to content

Rory

Members
  • Posts

    25
  • Joined

  • Last visited

Recent Profile Visitors

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

Rory's Achievements

  1. Hi All - I want a client to be able to see the feedback given on earlier versions than the present one ? ie. v003 notes available to them on v004 ? a trail of their notes Doesn't seem possible ?
  2. Hi All - I want a client to be able to see the feedback given on earlier versions than the present one ? ie. v003 notes available to them on v004 ? a trail of their notes Doesn't seem possible ?
  3. Rory

    Length of query result ?

    Thanks Steve ! That was it exactly.
  4. Rory

    Length of query result ?

    Thanks Peter - Yip, I tried that also but still not luck - it returns 52 items but there are more projects than that ...
  5. Rory

    Length of query result ?

    Thanks Lorenzo - Certainly have worked through those - My problem seems to not have to do with the actual query itself because when I do the following : projects = session.query('Project') for p in projects: print(p['name']) Not all the projects are returned .... ? So the one that I am trying to query is not in the returned list .
  6. Hi All, I am trying to return a query := p = session.query('select id,name from Project where name is "projname"') Certain projnames return a result id/name but others don't ? Is there a limit to a query length ? or something else I may be missing ? Thanks, Rory
  7. 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,
  8. 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
  9. Rory

    Action on Shot

    Thanks so much - great help
  10. 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 ?
  11. 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
  12. Rory

    Action on Shot

    Thanks so much Lorenzo - Will take a look asap.
  13. 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 }] }
×
×
  • Create New...