mantje Posted October 29, 2014 Report Share Posted October 29, 2014 Hi,I want to run some scripts in nuke after I start it from launchpad. However, I need to know what task nuke has been launched for.What would be the preferred way to access this information? Link to comment Share on other sites More sharing options...
Mattias Seebergs Posted November 12, 2014 Report Share Posted November 12, 2014 Hi, You can get the task id from the environment variables. See the Environment variables section on this page. Let me know if you have any more questions. Mattias Link to comment Share on other sites More sharing options...
georgea Posted July 6, 2015 Report Share Posted July 6, 2015 Hi all, The link on the previous post about environment variables doesn't seem to work,Is there an updated version of it anywhere? Many Thanks! George Link to comment Share on other sites More sharing options...
Mattias Seebergs Posted July 7, 2015 Report Share Posted July 7, 2015 Hi George, No it is not because it has changed, but you can get the task id on the FTRACK_TASKID environment variable. Let me know if you have any more questions. Thanks, Mattias Link to comment Share on other sites More sharing options...
Peter Hartwig Posted February 22, 2017 Report Share Posted February 22, 2017 Does that mean that we can change the task by simply changing the FTRACK_TASKID ? Or are there other things that need changing as well? Link to comment Share on other sites More sharing options...
lorenzo.angeli Posted February 23, 2017 Report Share Posted February 23, 2017 Hi, if you need to set JUST the context, having the environment is correct and enough. If you want to have your interface refreshing (eg: ftrack-connect-maya, ftrack-connect-nuke) you can try doing this once you set the env. ``` python from ftrack_connect.connector import panelcom panelComInstance = panelcom.PanelComInstance.instance() panelComInstance.switchedShotListeners() ``` My2C Cheers. L. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.