之前在群里看到有群友有这样的需求,顺手写的mel。
写了就顺便发出来看看有没有其他人用的上吧。
string $window = `window -title "时间滑块高度调整1.0.0"
-iconName "调整"
-widthHeight 150 90`;
columnLayout -adjustableColumn true;
text -label "制作:哀羽" ;
text -label "调整为现在的多少倍:";
floatFieldGrp -numberOfFields 1 -precision 1 myFloatField;
button -label "输入倍数" -c "addNumbers()";
showWindow;
global proc addNumbers()
{
float $num1 = `floatFieldGrp -q -value1 myFloatField`;
global string $gPlayBackSlider;
float $SliderHeight = `timeControl -q -height $gPlayBackSlider`;
float $newSliderHeight = $SliderHeight * $num1;
timeControl -e -height $newSliderHeight $gPlayBackSlider;
}
效果如下