Im openning my Maya through the shotgun desktop app and when it’s loaded, it give me this error on my script editor : # Error: Shotgun: Missing required environment variable SGTK_ENGINE. #
How I can fix it ?
Hi @miguel.oliveira, welcome to the forums!!
That environment variable should be set by the launch process in Shotgun Desktop just before it starts Maya, then the Maya process inherits that env var.
So the fact that it is not set, means perhaps two things:
- You’re modifying or stripping out the environment at some point during the launch?
- Perhaps the startup script is executing twice for some reason, since we will clean this env var up once the engine starts. Are the integrations working other than this error appearing?