wim.w Posted October 9, 2013 Report Share Posted October 9, 2013 Hello, I'm testing the use of ftrackplugins in visual studio 2010.Since this is my first time using python in VS, I was wondering if you have any idea how I can enable VS to recognize the ftrack API I've extracted the ftrackplugins-win64-1b17 archive into all three paths:C:\Python27\Lib\site-packages\ftrackplugins-win64-1b17\C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\ftrackplugins-win64-1b17\C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\ftrackplugins-win64-1b17\ and "ftrackplugins" shows up under all 3 environments in visual studio Solution Explorer (see attached image) I tried running the follwing script (our private information is replaced by # for security purposes) ---------- import os;import sys;ftLibPath = '#####/ftrackplugins-win64-1b17/ftrackplugins/libdir'ftApiKey = '#####ftLogName = '#####'if not ftLibPath in sys.path: sys.path.append(ftLibPath); print '>> Added to sys.path : '+ftLibPath; os.environ['FTRACK_SERVER'] = ftServeros.environ['FTRACK_APIKEY'] = ftApiKeyos.environ['LOGNAME'] = ftLogNameimport ftrack;projects ftrack.getProjects(True)for proj in projects: print proj --------------- I get a printed output of all projects but the problem is "ftrack" is not recognized by the compiler while editing.If I open the interactive window and execute the script (line-by-line) "ftrack" is fully operational with intellisense enabled.Any idea how I can fix this? Kind regards, Wim Wouters Link to comment Share on other sites More sharing options...
Björn Rydahl Posted October 14, 2013 Report Share Posted October 14, 2013 Hey Wim, are you just looking to create script that use the ftrack pyhon api? If so, then you should use only the api, not the full plugins. Have a look here: api.ftrack.com And let me know if you have more questions. Cheers Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.