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] |
我写的一个小插件.用在M3G骨格动画上.请大侠批评.