LoginSignup
1
0

More than 5 years have passed since last update.

decomposeMatrixノードを使う

Posted at

準備

decomposeMatrixはmatrixNodesというプラグインに含まれています。
ですのでloadPluginをする必要があります。

matrixNode をloadする

loadPlug.py
import pymel.core as pm
pm.loadPlugin("matrixNodes")

実際に使ってみる!

さて、decomposeMatrixはどんなことに使うことができるのでしょう?
数ある使用目的から、一つの例として説明していきます。

頭部matrixをdecomposeMatrixにコネクションしてみる

2018-12-12_10h21_59.png

図のようなジョイントが存在している状態にて、
test_dMという名前のdecomposeMatrixを作成。

pm.createNode("decomposeMatrix", n="test_dM")

ノードエディターでは下の図のように
head_prxというノードのworldMatrixから"test_dM"(decomposeMatrix)ノードへコネクション
2018-12-12_10h26_55.png

head_posというlocatorを用意します
このノードに"test_dM"(decomposeMatrix)のoutputTranslateをコネクションしてみると...

2018-12-12_11h24_31.png

head_posというlocatorがhead_prx(joint)と同じ位置になります。

初回は、locatorに対してコンストレインの代わりとして使える、といったお話でした!

初めての投稿でしたが、落ち度がないかすごく心配(ハラハラ...)。
ご指摘等ご意見ありましたらご連絡くださいませ。。。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0