Henrik Cednert

Members
  • Content Count

    30
  • Joined

  • Last visited

  • Days Won

    1

Henrik Cednert last won the day on December 28 2015

Henrik Cednert had the most liked content!

About Henrik Cednert

  • Rank
    Advanced Member

Profile Information

  • Gender
    Male
  • Location
    Stockholm
  1. I thought it did. But turned out that I was using an older version of the new API. uninstalled it and installed the new one. Now I get the warning but it does not fail. Cheers
  2. Hello On osx 10.11 I get varnings like this: /Library/Python/2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning /Library/Python/2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning /Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning) Seems to halt the ftrack operation initiated. Anyone has a fix in their pocket. Asking here before I've emptied google. =) Cheers
  3. Oh... Seems like the only thing missing was another whiskey. Got it working with this... There's some poop in the code here plus the fact that I have no idea what I'm doing.. But it does what I wanted it to so that's good I guess. =) project=ftrack.getProject(projname)statuses = project.getTaskStatuses()print "Project, full name: " + str(project.getFullName()) +"\n"i = 0print "Available statuses: "for status in statuses: print str("%02d" % (i,)) + " " + str(status.getName()) i += 1print ""*2 episodeCounter = 0sequenceCounter = 0shotCounter = 0## ITEMS IN PROJECT ROOT## shots in rootshotFTList = project.getChildren('shot',1)shots = project.getChildren('shot',1)for shot in shots: shotCounter += 1 print " " + shot.get('name') tasks = shot.getTasks() for task in tasks: print " " + task.getName() print " STATUS: " + task.getStatus().get('name') print""
  4. Hello Playing with the API but for the love of God I can't figure out how to get the status of a task. First of all, it seems to be a bit confusing what a task is and what a status is and what you see labeled as task in the webUI isn't necessarily a task in the API... So in the webUI we have: PROJECT sequences can be here in project root shots can be here in projectroot --EPISODES ----sequences ------shots After a long journey I've iterated over project, sequences and collected all sequences in one FTList and all shots in one FTList. If you look at the attached screenshot. For each shot in my shotFTList I wan't to get: The shots current status, in screen shot "Not started".Each individual tasks name/type and current status. In screenshot. [Grade: Not started], [Compositing: Awaiting approval], [source prep: YES]How do I do this? The whole goal with this exercise is to in the end make an action that I can trigger which will rsync all the shots where 'compositing' task type is "awaiting export" from ftp to san. Cheers
  5. Henrik Cednert

    new ftrack_api

    Was about to play with the new api but not sure it works as it should? Maybe it's so early that we shouldn't be able to use it? Trying with a simple script with my user which have api rights. import ftrack_apisession = ftrack_api.Session( server_url='https://youerserver.ftrackapp.com', api_key='1337-your-key', api_user='youruser')projects = session.query('Project')for project in projects: print project['name']I just get this: neo@NEO-rMBP|/Library/Python/2.7/site-packages/ftrack_api: python ~/Documents/ftrack_dev/test_connect.py /Library/Python/2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.'>https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning/Library/Python/2.7/site-packages/requests/packages/urllib3/util/ssl_.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.'>https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning. InsecurePlatformWarning/Library/Python/2.7/site-packages/requests/packages/urllib3/connectionpool.py:768: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.org/en/latest/security.html InsecureRequestWarning)Traceback (most recent call last): File "/Users/neo/Documents/ftrack_dev/test_connect.py", line 24, in <module> for project in projects: File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/_abcoll.py", line 581, in __iter__ v = self[i] File "/Library/Python/2.7/site-packages/ftrack_api/query.py", line 22, in __getitem__ self._fetch_results() File "/Library/Python/2.7/site-packages/ftrack_api/query.py", line 35, in _fetch_results self._results = self._session._query(self._expression) File "/Library/Python/2.7/site-packages/ftrack_api/session.py", line 519, in _query results = self._call(batch) File "/Library/Python/2.7/site-packages/ftrack_api/session.py", line 1230, in _call result['content']ftrack_api.exception.ServerError: Server reported error Exception(Python API is disabled and cannot be used. Please ask your system administrator to enable it in the ftrack.ini file.)
  6. If a shot is in a sequence it does not find it. You have to have them in the root of the project. How can one deal with this? We ran into this when doing a custom uploader and version updater as well. There must be some way to recursively search a project for a shot name so you can then manipulate it. Or?
  7. My thought was more that this shouldn't be an action. THis function of importing thumbs should be a base thing in a vanilla ftrack. =)
  8. Hi again. Worked like a charm now. Saves me tons of time. This should REALLY REALLY REALLY REALLY be a part of the regular import function in ftrack. =)
  9. Thanks Carl GUess that wasn't that clear to me in the tut. I still had osenviron.setdefaul() in ftrack.py. I had changed the values though to my values but not removed 'setdefault'. Now it seems to work! Will take it for a spin next time there's a batch of thumbs, manually uploaded 100 this morning. Heheheh. Thanks again
  10. I installed the api the day or two days after 3.1 rel. When downloading it it was for the proper version but can't find any version strings anywhere in the api s
  11. Hello Starting the API as the tutorial says works. Importing into pyton after that doesn't though. Can't figure out how to upload an image here so will link to dropox... https://www.dropbox.com/s/hwhjb2r7hqr5xjj/Screenshot_2015-07-07_16.00.13.png
  12. I had missed some steps... Now api and connect is up. But the thumbs action gives error when started. DEBUG:FTrackCore.api.event.hub.EventHub:Reconnect attempt 1 of 30 DEBUG:FTrackCore.api.event.hub.EventHub:Reconnect attempt 1 of 30 DEBUG:FTrackCore.api.event.hub.EventHub:Failed to reconnect automatically. ERROR:FTrackCore.api.event.hub.EventHub:Error sending event <Event {'topic': 'ftrack.meta.subscribe', 'source': {'id': 'f0f1e0346a8649fb9ddf54cc81f51fa0', 'user': {'username': 'filmassist04'}}, 'target': '', 'sent': None, 'data': {'subscriber': {'id': '5e26b2c337594248bb57ce4e6f6eac5c'}, 'subscription': 'topic=ftrack.action.discover'}, 'id': 'dc251173fa5c458496b463b89bcc0fbe', 'inReplyToEvent': None}>. Traceback (most recent call last): File "/Applications/python-api/FTrackCore.egg/FTrackCore/api/event/hub.py", line 596, in _publish self._eventNamespace, event, callback=callback File "/Applications/python-api/FTrackCore.egg/FTrackCore/api/event/hub.py", line 781, in _emitEventPacket self._codeNameMapping['event'], data=data, callback=callback File "/Applications/python-api/FTrackCore.egg/FTrackCore/api/event/hub.py", line 801, in _sendPacket self._connection.send(packet) AttributeError: 'NoneType' object has no attribute 'send'
  13. Looks like I'm not man enough to get that up and running. =) I have connect up and running but when running the py from terminal I'm hit with an error. Traceback (most recent call last): File "batch_upload_thumbnails_action.py", line 10, in <module> import ftrackImportError: No module named ftrack
  14. Are we there yet? Not that funny to manually import 100ds of thumbs. =/
  15. I have pretty much the same thing. In addition with a few other annoyances. =) 1. Import CSV. Wait, for a very long time. 2. Have to reload after that before I can do anything else. 3. Select all and add VFX template, here it normally error outs at first. "cannot read property insert sibbling of null" 4. Reload a few times. Add VFX template again. 5. Reload. Now I can end up with duplicates or single tasks added. A bit like the lottery. =) feels like you manually have to reload a lot to avoid odd stuffs or to get out of trouble. Have parts of this in a screenrecording if it's of any help.