可以自定义“Hypershade”,以使“脚本编辑器”(Script Editor)在“Hypershade”窗口中显示为一个选项卡。该选项卡在当前“Hypershade” 实例之后不再保留在“Hypershade”中。当“脚本编辑器”(Script Editor)位于“Hypershade”中时,无法单独将其打开。
打开“脚本编辑器”(Script Editor)和“Hypershade”。如果“Hypershade”处于浮动状态,请运行以下命令在“Hypershade”中创建一个“脚本编辑器”(Script Editor)选项卡:
setParent hyperShadePanel1Window|TearOffPane|hyperShadePanel1|mainForm|mainPane|createBarWrapForm|createAndOrganizeForm|createAndOrganizeTabs; $layOut1 = `paneLayout -configuration "single" "scriptEditor"`; setParent $layOut1; control -e -p $layOut1 scriptEditorPanel1Window;
如果“Hypershade”位于窗格中,请改为运行以下命令:
setParent MayaWindow|formLayout1|viewPanes|hyperShadePanel1|mainForm|mainPane|createBarWrapForm|createAndOrganizeForm|createAndOrganizeTabs; $layOut1 = `paneLayout -configuration "single" "scriptEditor"`; setParent $layOut1; control -e -p $layOut1 scriptEditorPanel1Window;
若要移除此选项卡,请关闭或取消“Hypershade”。从“窗口 > 常规编辑器 > 脚本编辑器”(Windows > General Editors > Script Editor)或从“脚本编辑器”(Script Editor)图标可重新访问“脚本编辑器”(Script Editor)。