Hi,
We have a folder representing the software name under the Task folder in our schema.
It used to be a simple folder, and now it’s a Software Entity.
For some reason, Maya sets the Context’s Entity to the Software, when Houdini and Nuke don’t. With Houdini and Nuke, the Context’s Entity is the Asset (or Shot).
The only difference seems to be that the maya folder, defined as a Software Entity in the schema, has its own folder and yml, when the other softwares are created via a generic folder using the software name.
The following error appears when saving a new scene:
// Error: Shotgun 1f5a04b23213444fbb414ee500050260: Could not refresh the engine; error: ‘Engine tk-maya cannot initialize - the pick environment hook was not able to return an environment to use, given the context model, Software Maya. Usually this is because the context contains insufficient information for an environment to be determined.’
Traceback (most recent call last):
File “/app/user/alefeve/package/tk_core/0.19.6-sps.1.0/studio/install/app_store/tk-maya/v0.10.1/engine.py”, line 208, in on_scene_event_callback
refresh_engine(engine_name, prev_context, menu_name)
File “/app/user/alefeve/package/tk_core/0.19.6-sps.1.0/studio/install/app_store/tk-maya/v0.10.1/engine.py”, line 199, in refresh_engine
current_engine.change_context(ctx)
File “/app/user/alefeve/package/tk_core/0.19.6-sps.1.0/studio/install/core/python/tank/platform/engine.py”, line 778, in change_context
engine_name=self.instance_name, tk=self.tank, context=new_context
File “/app/user/alefeve/package/tk_core/0.19.6-sps.1.0/studio/install/core/python/tank/platform/engine.py”, line 3382, in get_env_and_descriptor_for_engine
env_name = __pick_environment(engine_name, tk, context)
File “/app/user/alefeve/package/tk_core/0.19.6-sps.1.0/studio/install/core/python/tank/platform/engine.py”, line 3429, in __pick_environment
“for an environment to be determined.” % (engine_name, context)
TankEngineInitError: Engine tk-maya cannot initialize - the pick environment hook was not able to return an environment to use, given the context model, Software Maya. Usually this is because the context contains insufficient information for an environment to be determined. //
// Error: Message: Shotgun encountered a problem changing the Engine’s context.
Please contact support@shotgunsoftware.com
The other problem is that, in Maya, the files created before the use of the Software Entity still have a Context with the Entity set to the Asset, even when deleting their caches, when all new Entities have the Software as Context’s Entity.
Can anyone help on this?