Render.ru

graph editor preferences

Ken_Zin

Мастер
Рейтинг
108
#1
Господа,подскажите пожалуйста манёвр,благодаря которому maya запомнила бы настройки в graph editor'e,например такие как: view>infinity,view>autoframe. Дабы после загрузки maya не приходилось сызнова всё выставлять. Первое что напрашивается это мега скрипт C:\Program Files\Autodesk\Maya2012\scripts\others\graphEditorPanel

menuItem -label (uiRes("m_graphEditorPanel.kAutoFrame"))
-checkBox 1
-annotation (uiRes("m_graphEditorPanel.kAutoFrameAnnot"))
-command (
"animCurveEditor -edit -autoFit #1 " + $graphEd + ";" +
"optionVar -intValue graphEditorAutoFit #1;"




menuItem -label (uiRes("m_graphEditorPanel.kInfinity"))
-checkBox 1
-annotation (uiRes("m_graphEditorPanel.kInfinityAnnot"))
-command ("animCurveEditor -edit -displayInfinities #1 " + $graphEd)
displayInfinityItem;


В этих местах я заменил false на true:" -checkBox 1 " , но ничего не произошло.
 

VladimirZ

Знаток
Рейтинг
25
#2
В userSetup.mel (если нет - создай в папке скриптов) запиши:

evalDeferred("animCurveEditor -edit -autoFit true graphEditor1GraphEd");
evalDeferred("animCurveEditor -edit -displayInfinities true graphEditor1GraphEd");
 

VladimirZ

Знаток
Рейтинг
25
#3
Есть ещё один вариант:
Открываем в Блокноте $MAYAHOME\scripts\startup\buildNewSceneUI.mel

Ищем и меняем по поиску "-autoFit 0" на "-autoFit 1"
И выше строчку "-displayInfinities 0" на "-displayInfinities 1".
 
Сверху