Working on #2. To run it I just test for the engine and not the env vars just yet. Have not got PS to launch yet from my custom app.
engine_init.py
seems to work but it gets triggered twice so my code gets run twice. Two modelsheets.
I can see it hit the if engine.name == test
twice in a row in the logs…
2019-08-15 16:28:15,436 [14907 INFO sgtk.ext.tk_photoshopcc_basic.plugin_init] Bootstrapping toolkit...
2019-08-15 16:28:15,809 [14908 INFO sgtk.ext.tk_framework_adobe.plugin_init] Bootstrapping toolkit...
2019-08-15 16:28:22,004 [14907 DEBUG sgtk.env.project.tk-photoshopcc.js] Sending context about to change from client.
2019-08-15 16:28:22,005 [14908 DEBUG sgtk.env.project.tk-photoshopcc.js] Sending context about to change from client.
2019-08-15 16:28:22,013 [14907 DEBUG sgtk.env.project.tk-photoshopcc.js] Setting commands from client: {"commands": [{"type": "panel", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-shotgunpanel/v1.6.3/resources/shotgun_panel_menu_icon.png", "display_name": "Shotgun Panel...", "description": "Panel UI with Shotgun information about your scene, yourself and the things around you.", "uid": 3}], "context_menu_cmds": [{"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-photoshopcc/v1.7.1/resources/shotgun_logo.png", "display_name": "Jump to Shotgun", "description": "Open the current context in a web browser.", "uid": 1}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-photoshopcc/v1.7.1/resources/shotgun_folder.png", "display_name": "Jump to File System", "description": "Open the current context in a file browser.", "uid": 2}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-screeningroom/v0.3.3/icon_256.png", "display_name": "Jump to Screening Room Web Player", "description": "Screening Room integration right inside your application.", "uid": 5}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-screeningroom/v0.3.3/icon_256.png", "display_name": "Jump to Screening Room in RV", "description": "Screening Room integration right inside your application.", "uid": 4}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/core/python/tank/platform/qt/folder_256.png", "display_name": "Open Log Folder", "description": "Opens the folder where log files are being stored.", "uid": 11}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-pythonconsole/v1.1.2/icon_256.png", "display_name": "Shotgun Python Console...", "description": "A Python console for Shotgun Toolkit", "uid": 9}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/core/python/tank/platform/qt/book_256.png", "display_name": "Toggle Debug Logging", "description": "Toggles toolkit debug logging on and off. This affects all debug logging, including log files that are being written to disk.", "uid": 10}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-about/v0.2.8/icon_256.png", "display_name": "Work Area Info...", "description": "Shows a breakdown of your current environment and configuration.", "uid": 8}], "favorites": [{"display_name": "File Open...", "description": "Using this app you can browse, open and save your Work Files and Publishes.", "fav_index": 0, "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-workfiles2/v0.11.9/resources/file_open_menu_icon.png", "type": "default", "uid": 6}, {"display_name": "File Save...", "description": "Using this app you can browse, open and save your Work Files and Publishes.", "fav_index": 1, "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-workfiles2/v0.11.9/resources/file_save_menu_icon.png", "type": "default", "uid": 7}]}
2019-08-15 16:28:22,013 [14908 DEBUG sgtk.env.project.tk-photoshopcc.js] Setting commands from client: {"commands": [{"type": "panel", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-shotgunpanel/v1.6.3/resources/shotgun_panel_menu_icon.png", "display_name": "Shotgun Panel...", "description": "Panel UI with Shotgun information about your scene, yourself and the things around you.", "uid": 3}], "context_menu_cmds": [{"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-photoshopcc/v1.7.1/resources/shotgun_logo.png", "display_name": "Jump to Shotgun", "description": "Open the current context in a web browser.", "uid": 1}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-photoshopcc/v1.7.1/resources/shotgun_folder.png", "display_name": "Jump to File System", "description": "Open the current context in a file browser.", "uid": 2}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-screeningroom/v0.3.3/icon_256.png", "display_name": "Jump to Screening Room Web Player", "description": "Screening Room integration right inside your application.", "uid": 5}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-screeningroom/v0.3.3/icon_256.png", "display_name": "Jump to Screening Room in RV", "description": "Screening Room integration right inside your application.", "uid": 4}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/core/python/tank/platform/qt/folder_256.png", "display_name": "Open Log Folder", "description": "Opens the folder where log files are being stored.", "uid": 11}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-pythonconsole/v1.1.2/icon_256.png", "display_name": "Shotgun Python Console...", "description": "A Python console for Shotgun Toolkit", "uid": 9}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/core/python/tank/platform/qt/book_256.png", "display_name": "Toggle Debug Logging", "description": "Toggles toolkit debug logging on and off. This affects all debug logging, including log files that are being written to disk.", "uid": 10}, {"type": "context_menu", "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-about/v0.2.8/icon_256.png", "display_name": "Work Area Info...", "description": "Shows a breakdown of your current environment and configuration.", "uid": 8}], "favorites": [{"display_name": "File Open...", "description": "Using this app you can browse, open and save your Work Files and Publishes.", "fav_index": 0, "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-workfiles2/v0.11.9/resources/file_open_menu_icon.png", "type": "default", "uid": 6}, {"display_name": "File Save...", "description": "Using this app you can browse, open and save your Work Files and Publishes.", "fav_index": 1, "icon_path": "/Volumes/Droid/PIPE/Shotgun/PipelineConfigurations/PIPE/Toolkit/install/app_store/tk-multi-workfiles2/v0.11.9/resources/file_save_menu_icon.png", "type": "default", "uid": 7}]}
2019-08-15 16:28:22,014 [14908 DEBUG sgtk.env.project.tk-photoshopcc.js] Setting log file path from client: "/Users/danieleaton/Library/Logs/Shotgun/tk-photoshopcc.log"
2019-08-15 16:28:22,014 [14907 DEBUG sgtk.env.project.tk-photoshopcc.js] Setting log file path from client: "/Users/danieleaton/Library/Logs/Shotgun/tk-photoshopcc.log"
any thoughts?