Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
0
Help us understand the problem. What are the problem?

More than 3 years have passed since last update.

@TakayukiKiyohara

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

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
0
Help us understand the problem. What are the problem?