Maya cmds pymel 单位和轴向设置

import maya.cmds as cmds# 1. to make the Y-axis of the world to be the up axis:
cmds.upAxis( ax='y' )# 2. to make the Z-axis of the world to be the up axis,
# and rotate the view:
cmds.upAxis( ax='z', rv=True )# 3. to query which axis is the current up axis
# (returns a string: a "y" or a "z"):
cmds.upAxis( q=True, axis=True )
################################################################################ What is the current linear unit?
cmds.currentUnit( query=True, linear=True )# What is the current angular unit in its long name form?
cmds.currentUnit( fullName=True, query=True, angle=True )# Change the current time unit to ntsc
cmds.currentUnit( time='ntsc' )# Change the current linear unit to inches
cmds.currentUnit( linear='cm' ) #[mm | millimeter | cm | centimeter | m | meter | km | kilometer | in | inch | ft | foot | yd | yard | mi | mile] 

转载于:https://www.cnblogs.com/ibingshan/p/10237715.html

Maya cmds pymel 单位和轴向设置相关推荐

  1. Maya cmds pymel 快速选择hard edges(硬边)

    Maya cmds pymel 快速选择hard edges(硬边) import maya.cmds as cmds cmds.polySelectConstraint(m = 3, t = 0x8 ...

  2. maya cmds 笔记_1

    cmds.addExtension(nodeType='mesh', shortName='ms', longName='mass', defaultValue=1, minValue=0.001, ...

  3. Excel画图(多组数据设置多组图例、设置x轴、设置次坐标轴)

    Excel画图(多组数据设置多组图例.设置x轴.设置次坐标轴) 1.为多组数据设置多组图例.x轴 引言 在用Excel画图过程中,往往一张图中有多组数据.那么如何设置x轴数据.如何设置多组图例呢? 正 ...

  4. Maya USD 批量改 Variant Sets 批量设置 Active 的小工具(附USD相关链接)

    前言:在Maya中操作USD只需要获取到USD的实例然后用USD的方法去操作即可 相关链接 User Documentation and Tutorials API Documentation May ...

  5. R语言使用ggplot2包的快速可视化函数qplot绘制密度图(主题、轴标签设置)实战

    R语言使用ggplot2包的快速可视化函数qplot绘制密度图(主题.轴标签设置)实战 目录 R语言使用ggplot2包的快速可视化函数qplot绘制密度图(主题.轴标签设置)实战 #仿真数据

  6. 使用maya.cmds加载和卸载插件

    import maya.cmds as cmds cmds.loadPlugin('F:\\.....\\ch08.py') cmds.unloadPlugin('ch08.py') 需要注意,加载的 ...

  7. pyqtgraph的plotItem的轴刻度设置/轴刻度值风格设置

    轴刻度设置: 1.plotItem的轴刻度设置代码: y = plot.getAxis('left') # 获取plotItem的'left'轴 # y = plot.getAxis('bottom' ...

  8. echart 折线图设置y轴单位_echartsY轴双坐标单位切换

    话不多说直接上代码~ option = { color:['#00c14f'], title: { text: 'RFM情况' }, tooltip: { trigger: 'axis', axisP ...

  9. echarts图表y轴数据设置为固定值,等间距,如何自定义echarts图表y轴数据

    如图 将Y轴 设置为固定的0% 20% ----100%  话不多说直接上代码 yAxis: {type: 'value',max: 100,//最大值min: 0,//最小值interval:20, ...

最新文章

  1. 剑指offer 算法(树的两个节点的最低祖先)
  2. 数据结构:线段树及ST算法比较
  3. ghostblog主题_读Ghost博客源码与自定义Ghost博客主题
  4. 图像处理-STB图片读写
  5. dict 转换成json_Python XML转换为JSON,XML转换为Dict
  6. linux 重启mysql_Grafana+Prometheus 监控 MySql服务
  7. baidumap vue 判断范围_vue-baidu-map 行政区域划分
  8. zookeeper详解
  9. 前端开发工作中遇到的一些问题及解决方法
  10. 雾霾不散,课就不得不停?
  11. 2022-2027年中国番茄酱行业市场全景评估及发展战略规划报告
  12. 143_win10如何删除默认输入法
  13. 风险管理可分为哪两类?具体方法是什么?
  14. html坐标轴填充颜色,ECharts xAxis配置 x坐标轴轴线的样式
  15. linux 没有可用的缓冲区空间不足,由于系统缓冲区空间不足或队列已满,不能执...
  16. treecnt 51Nod - 1677
  17. python和nltk自然语言处理 pdf_NLTK基础教程:用NLTK和Python库构建机器学习应用 完整版pdf...
  18. 清除PbootCms中的版权标识
  19. js实现文字霓虹灯效果
  20. Python 脚本转成.exe文件

热门文章

  1. 1072:鸡尾酒疗法
  2. svg html g标签id,svg是什么?svg常用的方法(附代码)
  3. 如何更改Google文档的默认格式设置
  4. Docker Swarm 入门一篇文章就够了【转】
  5. nodejs调用SendCloud邮件API2.0
  6. 网络诊断工具ping介绍
  7. CHARACTERISTIC DEFINITION
  8. 听听别人怎么说:VueJS 与 ReactJS
  9. html添加markdown,为自己的网站添加Markdown——showdown.js使用教程
  10. 阿里总参谋长曾鸣:区块链中没有绝对的“去中心化”