无法切换层时的MEL修复语句

错误提示:

Error: file: C:/Program Files/Autodesk/maya2015/scripts/others/mayaBatchRenderProcedure.mel line 539: Cannot switch from 'defaultRenderLayer' to 'SEA' because of an override to a missing node within a referenced scene. Reload the referenced scene if it's unloaded, clean up the referenced scene or remove corresponding reference edits if the node has been deleted in the referenced scene.


操作步骤:

首先打开您的场景,检查手动切层是否有异常报错


步骤一:

打开场景运行如下MEL命令:

修复语句:

//source "C:/Program Files/Autodesk/Maya2015/scripts/others/fixRenderLayerOutAdjustmentErrors.mel";

fixRenderLayerOutAdjustmentErrors;


步骤二:

查看窗口中信息是否有报错提示,如没有保存场景重新分析。


步骤三:

如果运行上述MEL后,有报错,还是无法提交,在python窗口中运行下面的脚本,找到对应有问题的参考,从步骤一开始,操作,当运行结果没有报错的时候保存对应文件重新提交。

import maya.cmds as cmds

render_layer= cmds.listConnections("renderLayerManager.renderLayerId")

all_layer = cmds.ls(type ='renderLayer')

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')

for layer in all_layer:

if layer in render_layer:

print layer

else:

cmds.delete(layer)

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')


步骤四:

如果上述步骤都没有解决问题,建议您将场景中的所有reference导入到场景中,另存场景,重新提交分析任务。


步骤五:

如果是 2016.5 2017 2018的可以尝试设置下环境变量,重启客户端:

MAYA_ENABLE_LEGACY_RENDER_LAYERS=1

无法切换层时的MEL修复语句

错误提示:

Error: file: C:/Program Files/Autodesk/maya2015/scripts/others/mayaBatchRenderProcedure.mel line 539: Cannot switch from 'defaultRenderLayer' to 'SEA' because of an override to a missing node within a referenced scene. Reload the referenced scene if it's unloaded, clean up the referenced scene or remove corresponding reference edits if the node has been deleted in the referenced scene.


操作步骤:

首先打开您的场景,检查手动切层是否有异常报错


步骤一:

打开场景运行如下MEL命令:

修复语句:

//source "C:/Program Files/Autodesk/Maya2015/scripts/others/fixRenderLayerOutAdjustmentErrors.mel";

fixRenderLayerOutAdjustmentErrors;


步骤二:

查看窗口中信息是否有报错提示,如没有保存场景重新分析。


步骤三:

如果运行上述MEL后,有报错,还是无法提交,在python窗口中运行下面的脚本,找到对应有问题的参考,从步骤一开始,操作,当运行结果没有报错的时候保存对应文件重新提交。

import maya.cmds as cmds

render_layer= cmds.listConnections("renderLayerManager.renderLayerId")

all_layer = cmds.ls(type ='renderLayer')

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')

for layer in all_layer:

if layer in render_layer:

print layer

else:

cmds.delete(layer)

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')


步骤四:

如果上述步骤都没有解决问题,建议您将场景中的所有reference导入到场景中,另存场景,重新提交分析任务。


步骤五:

如果是 2016.5 2017 2018的可以尝试设置下环境变量,重启客户端:

MAYA_ENABLE_LEGACY_RENDER_LAYERS=1

无法切换层时的MEL修复语句

错误提示:

Error: file: C:/Program Files/Autodesk/maya2015/scripts/others/mayaBatchRenderProcedure.mel line 539: Cannot switch from 'defaultRenderLayer' to 'SEA' because of an override to a missing node within a referenced scene. Reload the referenced scene if it's unloaded, clean up the referenced scene or remove corresponding reference edits if the node has been deleted in the referenced scene.


操作步骤:

首先打开您的场景,检查手动切层是否有异常报错


步骤一:

打开场景运行如下MEL命令:

修复语句:

//source "C:/Program Files/Autodesk/Maya2015/scripts/others/fixRenderLayerOutAdjustmentErrors.mel";

fixRenderLayerOutAdjustmentErrors;


步骤二:

查看窗口中信息是否有报错提示,如没有保存场景重新分析。


步骤三:

如果运行上述MEL后,有报错,还是无法提交,在python窗口中运行下面的脚本,找到对应有问题的参考,从步骤一开始,操作,当运行结果没有报错的时候保存对应文件重新提交。

import maya.cmds as cmds

render_layer= cmds.listConnections("renderLayerManager.renderLayerId")

all_layer = cmds.ls(type ='renderLayer')

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')

for layer in all_layer:

if layer in render_layer:

print layer

else:

cmds.delete(layer)

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')


步骤四:

如果上述步骤都没有解决问题,建议您将场景中的所有reference导入到场景中,另存场景,重新提交分析任务。


步骤五:

如果是 2016.5 2017 2018的可以尝试设置下环境变量,重启客户端:

MAYA_ENABLE_LEGACY_RENDER_LAYERS=1

无法切换层时的MEL修复语句

错误提示:

Error: file: C:/Program Files/Autodesk/maya2015/scripts/others/mayaBatchRenderProcedure.mel line 539: Cannot switch from 'defaultRenderLayer' to 'SEA' because of an override to a missing node within a referenced scene. Reload the referenced scene if it's unloaded, clean up the referenced scene or remove corresponding reference edits if the node has been deleted in the referenced scene.


操作步骤:

首先打开您的场景,检查手动切层是否有异常报错


步骤一:

打开场景运行如下MEL命令:

修复语句:

//source "C:/Program Files/Autodesk/Maya2015/scripts/others/fixRenderLayerOutAdjustmentErrors.mel";

fixRenderLayerOutAdjustmentErrors;


步骤二:

查看窗口中信息是否有报错提示,如没有保存场景重新分析。


步骤三:

如果运行上述MEL后,有报错,还是无法提交,在python窗口中运行下面的脚本,找到对应有问题的参考,从步骤一开始,操作,当运行结果没有报错的时候保存对应文件重新提交。

import maya.cmds as cmds

render_layer= cmds.listConnections("renderLayerManager.renderLayerId")

all_layer = cmds.ls(type ='renderLayer')

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')

for layer in all_layer:

if layer in render_layer:

print layer

else:

cmds.delete(layer)

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')


步骤四:

如果上述步骤都没有解决问题,建议您将场景中的所有reference导入到场景中,另存场景,重新提交分析任务。


步骤五:

如果是 2016.5 2017 2018的可以尝试设置下环境变量,重启客户端:

MAYA_ENABLE_LEGACY_RENDER_LAYERS=1

无法切换层时的MEL修复语句

错误提示:

Error: file: C:/Program Files/Autodesk/maya2015/scripts/others/mayaBatchRenderProcedure.mel line 539: Cannot switch from 'defaultRenderLayer' to 'SEA' because of an override to a missing node within a referenced scene. Reload the referenced scene if it's unloaded, clean up the referenced scene or remove corresponding reference edits if the node has been deleted in the referenced scene.


操作步骤:

首先打开您的场景,检查手动切层是否有异常报错


步骤一:

打开场景运行如下MEL命令:

修复语句:

//source "C:/Program Files/Autodesk/Maya2015/scripts/others/fixRenderLayerOutAdjustmentErrors.mel";

fixRenderLayerOutAdjustmentErrors;


步骤二:

查看窗口中信息是否有报错提示,如没有保存场景重新分析。


步骤三:

如果运行上述MEL后,有报错,还是无法提交,在python窗口中运行下面的脚本,找到对应有问题的参考,从步骤一开始,操作,当运行结果没有报错的时候保存对应文件重新提交。

import maya.cmds as cmds

render_layer= cmds.listConnections("renderLayerManager.renderLayerId")

all_layer = cmds.ls(type ='renderLayer')

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')

for layer in all_layer:

if layer in render_layer:

print layer

else:

cmds.delete(layer)

print cmds.listConnections("renderLayerManager.renderLayerId")

print cmds.ls(type ='renderLayer')


步骤四:

如果上述步骤都没有解决问题,建议您将场景中的所有reference导入到场景中,另存场景,重新提交分析任务。


步骤五:

如果是 2016.5 2017 2018的可以尝试设置下环境变量,重启客户端:

MAYA_ENABLE_LEGACY_RENDER_LAYERS=1