MAXScript101_4.3 More Context Prefixes
来源:互联网 发布:中世纪2优化9兵经验 编辑:程序博客网 时间:2024/05/12 11:35
MAXScript101_4.3 More Context Prefixes
in coordsys <...>: 指定变换操作的坐标系
about: 指定物体的变换中心(pivot point), 它应用在旋转和放缩的时候。
变换物体
1、变换方法:postion,move,scale,rotate
2、变换坐标系和变换中心
变换坐标系统:coordsys关联表达式
[ in ] coordsys world 使用世界空间坐标系统
[ in ] coordsys local 使用对象自身的坐标系统
[ in ] coordsys parent 使用对象的父坐标系统
[ in ] coordsys grid 使用网格坐标系统
[ in ] coordsys screen 使用屏幕坐标系统
[ in ] coordsys <node> 使用指定的节点对象坐标系统,相当于在界面中以拾取的对象作为坐标系统
变换中心(pivot point): about关联表达式
about selection 以选择集为变换中心
about pivot 以对象的基准点为变换中心
about coordsys 以当前使用的坐标系统的原点为变换中心
about <node> 以拾取的节点对象的基准点为变换中心
示例一:基本功
先创建两个对象作为示例物体:
cy=cylinder height: 50
b=box length:10 width:50 pos:[50,0,0]
然后分别执行下面的代码:
rotate b (EulerAngles 0 0 90) --默认情况下,旋转以物体本身的旋转中心为基点
in coordsys world rotate b (EulerAngles 0 0 90)
--box旋转了自身90度,和上面相同,这是因为变换中心默认是使用对象自身的基准点。
in coordsys world about coordsys rotate b (EulerAngles 0 0 45)
--围绕世界坐标系远点旋转了45度,旋转的基点为世界坐标系原点
in coordsys cy about coordsys rotate b (EulerAngles 0 0 90) -- 以圆柱体的旋转中心为基点进行旋转
与about cy rotate b (EulerAngles 0 0 90) 作用一样
更多详情请参考MAXScript Reference, 输入关键字:coordsys 进行查询。
- MAXScript101_4.3 More Context Prefixes
- can't declare any more prefixes in this context
- axis tomcat 下调用ws ,can't declare any more prefixes in this context解决
- java.lang.IllegalStateException: can't declare any more prefixes in this context
- IBM AIX Websphere jdk1.4 下 can't declare any more prefixes in this context 问题的解决过程
- MAXScript101_4.2 Case Expressions
- MAXScript101_4.1 Loops and Loop Control
- Shortest Prefixes
- POJ2001Shortest Prefixes
- Shortest Prefixes
- Shortest Prefixes
- Shortest Prefixes
- Shortest Prefixes
- Shortest Prefixes
- poj2001Shortest Prefixes
- Shortest Prefixes
- Shortest Prefixes
- Prefixes前缀
- 用rapidxml来读取xml文件
- 什么是依赖注入(IoC)、控制反转(DI) (一)
- Android应用.三星i9000系列(2).工程代码,网络锁与锁三键
- android Manifest.xml选项-android:ConfigChanges
- 拓展活动感想
- MAXScript101_4.3 More Context Prefixes
- Shell命令 参数 字符串连接
- Android NDK开发技巧一
- SharePoint 2010 工作流解决方案:将 SharePoint Designer 可重用工作流导入 Visual Studio(1)
- Magento客户组自动转换插件 - Customer Group Switcher
- Java虚拟机启动参数
- 端点检测编程思想
- The Apache Tomcat Native library which allows optimal performance
- Android数据库查看工具、eclipse中查看android源码、