一半君的总结纸

听话只听一半君

Category Archives: mel how-to

#114 如何在echo all commands的时候快速的在scripter editor里找到想要的信息?

想要android的logcat那样,有个filter regex,正解大概应该是重新写出自定义的cmdScrollFieldReporter,然后把默认script editor里的换掉吧,然后再加个输regex的textfield在ui上,lz选了简单点的方法,自己做个窗口把filter过的内容显示在里面(好像不简单…)
阅读余下文章

#113 如何给Maya添加一个Python Command Shell ?

平时编pymel的时候,总是不记得PyNode有那些method,总是要到script editor里去打dir(xxx),然后还要框选再ctrl-enter,麻烦死了,此外使用不熟悉的module的时候也要经常dir,既然有mel command shell,为啥没有python的呢
阅读余下文章

#51 How do I get the width and height of a file texture?

A file texture includes the following attributes for this purpose: ‘.outSizeX’, ‘outSizeY’ and ‘outSize’.
阅读余下文章

#109 How do I retrieve or replace a single element from an array optionVar?

The optionVar command allows you to save multiple values in a single preference location. However, its ability to access individual elements of this array is rather limited.

阅读余下文章

#102 How do I convert between Maya’s internal linear unit (‘cm’) and the unit which is represented in the UI?

Below are two procedures that may be used to convert between Maya’s internal unit and the UI unit.
阅读余下文章

#105 How do I align an object to a curve (without using a constraint)?

Orthogonal Basis Vectors

(Wait! Don’t run away frightened at the prospect of calculus derivatives a la Eric W. Weisstein’s MathWorld. I promise it won’t be nearly so intense.)

阅读余下文章

#108 How do I plot equidistant points along a curve?

“arcLengthDimension” Node

The key here is to use an arcLengthDimension node to measure the distance along the curve.

#73 How do I determine the length of a NURBS curve?

Using ‘arclen’

#58 How do I determine how many CVs are in a NURBS Curve or Surface?

To determine how many CVs are in a curve:

阅读余下文章

#54 How do I get an expanded list of selected components instead of the default “range” format?

Typically Maya returns a list of selected components using its “range” format where an index sequence is compressed to “[start:end]”.

阅读余下文章