第一范文网 - 专业文章范例文档资料分享平台

maya IK FK无缝切换的mel语言

来源:用户分享 时间:2025/6/18 11:14:55 本文由loading 分享 下载这篇文档手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:xxxxxxx或QQ:xxxxxx 处理(尽可能给您提供完整文档),感谢您的支持与谅解。

//MEL脚本//************************************************************

string $ikhand_con = \string $ikpole_con = \

string $fk01_con = \string $fk02_con = \string $fk03_con = \

string $joi_skin_n01 = \string $joi_skin_n02 = \string $joi_skin_n03 = \

string $ik_fk = \float $temp_flo[3];

//IK to FK

$temp_flo = `xform -q -ws -ro $joi_skin_n01`;

xform -ws -ro $temp_flo[0] $temp_flo[1] $temp_flo[2] $fk01_con;

$temp_flo = `xform -q -ws -ro $joi_skin_n02`;

xform -ws -ro $temp_flo[0] $temp_flo[1] $temp_flo[2] $fk02_con;

$temp_flo = `xform -q -ws -ro $ikhand_con`;

xform -ws -ro $temp_flo[0] $temp_flo[1] $temp_flo[2] $fk03_con;

setAttr $ik_fk 1;

//FK to IK

$temp_flo = `xform -q -ws -t $fk03_con`;

xform -ws -t $temp_flo[0] $temp_flo[1] $temp_flo[2] $ikhand_con;

$temp_flo = `xform -q -ws -ro $fk03_con`;

xform -ws -ro $temp_flo[0] $temp_flo[1] $temp_flo[2] $ikhand_con;

$temp_flo = `xform -q -ws -t $fk02_con`;

xform -ws -t $temp_flo[0] $temp_flo[1] $temp_flo[2] $ikpole_con;

setAttr $ik_fk 0;

//相关表达式//********************************************************* joint3_orientConstraint1.nurbsCircle3W1=curve1.ik_fk; joint2_orientConstraint1.nurbsCircle6W0=curve1.ik_fk; joint1_orientConstraint1.nurbsCircle5W0=curve1.ik_fk; nurbsCircle1.visibility=curve1.ik_fk;

ikHandle1.ikBlend=1-curve1.ik_fk;

joint3_orientConstraint1.nurbsCircle4W0=1-curve1.ik_fk;

ikHandle1_poleVectorConstraint1.nurbsCircle1W0=1-curve1.ik_fk; ikHandle1_pointConstraint1.nurbsCircle3W0=1-curve1.ik_fk; nurbsCircle5.visibility=1-curve1.ik_fk; nurbsCircle4.visibility=1-curve1.ik_fk;

搜索更多关于: maya IK FK无缝切换的mel语言 的文档
maya IK FK无缝切换的mel语言.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.diyifanwen.net/c7gnlv9uckx77xpp57ww0_1.html(转载请注明文章来源)
热门推荐
Copyright © 2012-2023 第一范文网 版权所有 免责声明 | 联系我们
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:xxxxxx 邮箱:xxxxxx@qq.com
渝ICP备2023013149号
Top