手机游戏骨骼插件 

2007-02-09 15:41 发布

5210 3 0

window -title "手机游戏骨骼插件" -widthHeight 200 400;
string $about = "print \"jointTools || joint 1.0||a522008@yahoo.com\"";
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]
TA的作品 TA的主页
B Color Smilies

全部评论3

  • hp
    hp 2007-2-9 15:42:00

      我写的一个小插件.用在M3G骨格动画上.请大侠批评.

  • hellowing
    hellowing 2007-2-15 02:51:00
    這个大概是用mel script 寫的插件UI吧, 完程的骨骼插件要複雜多呢...
  • lovemaxmax
    lovemaxmax 2007-5-5 06:01:00

     

    [em04]厉害`~

你可能喜欢

手机游戏骨骼插件 
联系
我们
快速回复 返回顶部 返回列表