人气 146

[游戏程序] 手机游戏骨骼插件 [复制链接]

九艺网 2017-3-10 17:01:06

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?注册

x
window -title "手机游戏骨骼插件" -widthHeight 200 400;
string $about = "print \"jointTools || joint [email protected]\"";
menuBarLayout;
menu -label "Help";
  menuItem -l "Help..." ;
  menuItem -divider 1;
  menuItem -l "About" -c $about ;
//创建帮助窗口
scrollLayout -horizontalScrollBarThickness  0
    -verticalScrollBarThickness  10
    -childResizable true
    mainScroll;
columnLayout -adj 1 mainCol;
frameLayout
-l "锁定窗口"
-bs "etchedIn"
-collapsable 1
-marginHeight  5

randomSpinFrame;
columnLayout -adj 1 spinCol;
button -label "锁定骨骼" -width 20 -command "setAttr -lock true joint1.tz";
button -label "解除锁定" -width 20 -command "CBunlockAttr joint1.tz";

frameLayout
-l "Random Initial Spin"
-bs "etchedIn"
-collapsable 1
-marginHeight  5
randomSpinFrame;
columnLayout -adjustableColumn true;
button -label "选择上身" -width 100 -command "select -r joint2";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move ty" -min -30 -max 30 -columnAlign 1 left
-adjustableColumn true -attribute joint2.rx;
attrFieldSliderGrp -label "move tx" -min -30 -max 30 -columnAlign 1 left
-adjustableColumn true -attribute joint2.ry;
attrFieldSliderGrp -label "move tz" -min -20 -max 20 -columnAlign 1 left
-adjustableColumn true -attribute joint2.rz;
button -label "选择身体" -width 100 -command "select -r joint1";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
button -label "move ty" -width 10 -command "setKeyframe joint1.ty";
attrFieldSliderGrp -label "move ty"  -min 0 -max 3 -columnAlign 1 left
-adjustableColumn true -attribute joint1.ty;
button -label "选择左手上" -width 100 -command "select -r joint4";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move ry" -min 0 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint4.ry;
attrFieldSliderGrp -label "move rx" -min -180 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint4.rx;
attrFieldSliderGrp -label "move rz" -min 0 -max 130 -columnAlign 1 left
-adjustableColumn true -attribute joint4.rz;
button -label "选择左手下" -width 100 -command "select -r joint5";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move rx" -min -90 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint5.rx;
button -label "选择右手上" -width 100 -command "select -r joint13";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move ry" -min 0 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint13.ry;
attrFieldSliderGrp -label "move rx" -min -180 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint13.rx;
attrFieldSliderGrp -label "move rz" -min 0 -max 130 -columnAlign 1 left
-adjustableColumn true -attribute joint13.rz;
button -label "选择右手下" -width 100 -command "select -r joint14";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move rx" -min -90 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint14.rx;
button -label "选择右脚上" -width 100 -command "select -r joint16";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move ry" -min 0 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint16.ry;
attrFieldSliderGrp -label "move rx" -min -90 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint16.rx;
attrFieldSliderGrp -label "move rz" -min 0 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint16.rz;
button -label "选择右脚下" -width 100 -command "select -r joint17";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move rx" -min -60 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint17.rx;
button -label "选择右脚" -width 100 -command "select -r joint18";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move rx" -min -45 -max 45 -columnAlign 1 left
-adjustableColumn true -attribute joint18.rx;
button -label "选择左脚上" -width 100 -command "select -r joint7";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move ry" -min 0 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint7.ry;
attrFieldSliderGrp -label "move rx" -min -90 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint7.rx;
attrFieldSliderGrp -label "move rz" -min 0 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint7.rz;
button -label "选择左脚下" -width 100 -command "select -r joint8";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move rx" -min -60 -max 90 -columnAlign 1 left
-adjustableColumn true -attribute joint8.rx;
button -label "选择左脚" -width 100 -command "select -r joint9";
button -label "取消选择" -width 100 -command "select -cl";
button -label "创建关键桢" -width 100 -command "setKeyframe";
button -label "删除关键桢" -width 100 -command "timeSliderClearKey";
attrFieldSliderGrp -label "move rx" -min -45 -max 45 -columnAlign 1 left
-adjustableColumn true -attribute joint9.rx;
frameLayout
-l "Random Initial Spin"
-bs "etchedIn"
-collapsable 1
-marginHeight  5

randomSpinFrame;
columnLayout -adj 1 spinCol;

showWindow;

[em07]
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

QQ|手机版|小黑屋|九艺游戏动画论坛 ( 津ICP备2022000452号-1 )

GMT+8, 2024-4-27 07:43 , Processed in 0.092695 second(s), 23 queries .

Powered by Discuz! X3.4  © 2001-2017 Discuz Team.