Help us understand the problem. What is going on with this article?

【3dsMaxScript】アニメーション情報の取得の仕方

More than 3 years have passed since last update.

3dsMaxScriptでノードのアニメーション情報を取得する方法の覚書。

n=selection[1] --選択しているノードを取得
transCtr = n.pos.track  --位置コントローラーを取得。
rotCtr = n.rotation.track --回転コントローラーを取得。

--とりあえず、全部のコントローラーのキーフレーム数は同じ前提で
for i=1 to transCtr.x_position.keys.count do(
    pos = Point3 0.0 0.0 0.0
    pos.x = transCtr.x_position.keys[i].value
    pos.y = transCtr.y_position.keys[i].value 
    pos.z = transCtr.z_position.keys[i].value 
    xRot = rotCtr.x_rotation.keys[i].value
    yRot = rotCtr.y_rotation.keys[i].value
    zRot = rotCtr.z_rotation.keys[i].value
)

こんな感じにするらしい。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした