zoukankan      html  css  js  c++  java
  • Maya cmds pymel 单位和轴向设置

    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] 
  • 相关阅读:
    spring中的Filter使用
    跨站脚本(XSS)攻击
    RepeatSubmitInterceptor extends HandlerInterceptorAdapter
    理解TCP
    Github(第一次尝试)
    MVC(实战二:网址映射)
    MVC(实战一)
    MVC(基础二)
    WinFrom和WebFrom的区别
    MVC(基础一)
  • 原文地址:https://www.cnblogs.com/ibingshan/p/10237715.html
Copyright © 2011-2022 走看看