一半君的总结纸

听话只听一半君

Maya 20xx Tips 备忘录

有时候会遇到如下的脑残问题

  • 有时候你发现ctrl-s无法保存场景,从菜单选也一样,这时候一般改个名就可以了
    file -rename "xxx.ma";
    

    我这没现成的例子,求各位遇到的时候截个图我好放这儿

  • 有时候你想批量的转换保存的maya文件的版本号,虽然低版本理论上可以直接开高版本的文件(只要你选了ignore version number),但在2013之后似乎不是这样,这时你可以使用lz的脑残工具集合中的这个转换工具,lz放在Github
    ps: lz不是一个人,请看这里(Easy Fix to Make Maya 2013 Scenes Compatibile with Older Maya Versions)为什么有时候会需要这种脑残工具
  • 用mel unload mentalray 失败怎么办
    unloadPlugin -f "Mayatomr"; 
    // Error: line 1: Plug-in, "Mayatomr", cannot be unloaded because it defines a MPxData derived type that is still in use. // 
    

    此时可以这样试试

    delete mentalrayItemsList mentalrayGlobals miDefaultOptions miDefaultFramebuffer;
    flushUndo;
    unloadPlugin -f "Mayatomr"; 
    
  • 如果用的是高分屏笔记本,maya字太小怎么办?
    如果是2016,可以直接改preference/Interface/Interface Scaling

    maya 2016 interface scaling

    如果是2014,2015可以改这个文件,2015默认在 /usr/autodesk/maya2015-x64/resources/MayaStrings
    手残的话最好先备份一个,The “_mac”, “_nix” and “_win” 分别表示 Mac, Linux 和 Windows 下的大小,右边的一串数字表示字体大小,和字幕文件好像(下面可以发现有这么一行s_TschemeResources.raFontCharacteristics = “pixel,bold,italic,underline,strikeOut,fixedPitch, family” 所以能猜到每个数字是做什么的),成比例改大即可比如(lz只改了_nix的那一行,lz是在2015 sp6里试验的)

    // frameLayout titles, anything in bold font
    s_TschemeResources.rBoldLabelFont_mac = "11,1,0,0,0,0,Lucida Grande"
    s_TschemeResources.rBoldLabelFont_nix = "12,1,0,0,0,0,Arial"
    s_TschemeResources.rBoldLabelFont_win = "11,1,0,0,0,0,Tahoma"
    
    
    // script editor, hypershade swatch font
    s_TschemeResources.rFixedWidthFont_mac = "12,0,0,0,0,1,Courier"
    s_TschemeResources.rFixedWidthFont_nix = "20,0,0,0,0,1,Courier New"
    s_TschemeResources.rFixedWidthFont_win = "12,0,0,0,0,1,Courier New"
    
    
    // don't know what text this controls
    s_TschemeResources.rObliqueLabelFont_mac = "11,0,1,0,0,0,Lucida Grande"
    s_TschemeResources.rObliqueLabelFont_nix = "12,0,1,0,0,0,Arial"
    s_TschemeResources.rObliqueLabelFont_win = "11,0,1,0,0,0,Tahoma"
    
    
    // menu and general UI font
    s_TschemeResources.rPlainLabelFont_mac = "11,0,0,0,0,0,Lucida Grande"
    s_TschemeResources.rPlainLabelFont_nix = "16,0,0,0,0,0,Arial"
    s_TschemeResources.rPlainLabelFont_win = "11,0,0,0,0,0,Tahoma"
    
    
    // render settings path font
    s_TschemeResources.rSmallBoldLabelFont_mac = "10,1,0,0,0,0,Lucida Grande"
    s_TschemeResources.rSmallBoldLabelFont_nix = "12,1,0,0,0,0,Arial"
    s_TschemeResources.rSmallBoldLabelFont_win = "10,1,0,0,0,0,Tahoma"
    
    
    // don't know what text this controls
    s_TschemeResources.rSmallFixedWidthFont_mac = "10,0,0,0,0,1,Courier"
    s_TschemeResources.rSmallFixedWidthFont_nix = "11,0,0,0,0,1,Courier New"
    s_TschemeResources.rSmallFixedWidthFont_win = "11,0,0,0,0,1,Courier New"
    
    
    // small italic labels in UI
    s_TschemeResources.rSmallObliqueLabelFont_mac = "10,0,1,0,0,0,Lucida Grande"
    s_TschemeResources.rSmallObliqueLabelFont_nix = "13,0,1,0,0,0,Arial"
    s_TschemeResources.rSmallObliqueLabelFont_win = "10,0,1,0,0,0,Tahoma"
    
    
    // help line font
    s_TschemeResources.rSmallPlainLabelFont_mac = "10,0,0,0,0,0,Lucida Grande"
    s_TschemeResources.rSmallPlainLabelFont_nix = "14,0,0,0,0,0,Arial"
    s_TschemeResources.rSmallPlainLabelFont_win = "10,0,0,0,0,0,Tahoma"
    
    
    // nodes in the work area of Hypershade
    s_TschemeResources.rTinyBoldLabelFont_mac = "9,1,0,0,0,0,Lucida Grande"
    s_TschemeResources.rTinyBoldLabelFont_nix = "12,1,0,0,0,0,Arial"
    s_TschemeResources.rTinyBoldLabelFont_win = "9,1,0,0,0,0,Tahoma"
    

    此外,虽然这样字大了,但是ui尺寸没变,改太大字会被切掉喔,也许可以试试lsUI得到所有的controls,然后同样按比例放大-w和-h,lz没有试. menu and general UI font 那里是16的话,在lz的14寸1920×1080的屏幕上,channelbox处的字会被切掉一些,设成15好了点,不过字小了些…

    update: 如何避免字体裁切请看 #116 Maya2015如何单独调整channelbox的行高以及字体?

  • linux下有时候遇到 mmap: Cannot allocate memory 的错误提示,然后maya crash,无法解决的时候可以尝试临时添加环境变量

    # bash shell
    MAYA_USE_MALLOC=1;maya 
    
    # c shell
    setenv MAYA_USE_MALLOC 1;maya 
    

    或者用sysctl修改增大vm.max_map_count(需要管理员权限)

  • 有时候遇到农场上的机器开maya gui执行操作的时候,因为版本不搭或者其他原因,开文件的时候出现对话框,比如unknow error, check script editor for details,此时需要按确定才能继续,如果想不跳出这种提示,可以设环境变量
    export MAYA_IGNORE_DIALOGS=1
    
  • 新版本的maya默认都是viewport 2.0,如果机器比较破,想默认设成老版viewport,可以
    optionVar -iv viewportRenderer 1
    
  • 中文系统,改成英文界面
    加环境变量MAYA_UI_LANGUAGE=en_US
    
  • 禁止crash之后的错误报告窗口
    # Disable MayaCrashLog[yymmdd.hhmm].log
    MAYA_DEBUG_ENABLE_CRASH_REPORTING = 0
    
    # Disable Autodesk Customer Involvement Program
    MAYA_DISABLE_CIP=1
    
    # Disable Customer Error Reporting
    MAYA_DISABLE_CER=1
    
  • win 10 下装了2017以后,会有destop service的多个进程造成卡顿和风扇狂转,需要禁用Autodesk Desktop App Service服务和自动启动项

引用:
user interface size – Simply Maya User Community
Linux – Memory Allocation?
Python from an external interpreter
[Maya] Reducing Maya shutdown time by disabling Autodesk CIP

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

%d 博主赞过: