UuuNyaa / blender_mmd_uuunyaa_tools

mmd_uuunyaa_tools is a blender addon for adjust scenes, models and materials in concert with mmd_tools
GNU General Public License v3.0
444 stars 28 forks source link

request: blender action import feature #37

Open listelin opened 3 years ago

listelin commented 3 years ago

BlenderのactionをAsset SearchでImportする機能を追加するのはどうでしょうか?

サンプル https://drive.google.com/file/d/17-cSzcliYuji7bUHWa4u05Qvgd-2HE1u/view?usp=sharing

NLAアクション設定したアセットを用意します。(アクションはfake user設定) nla

★追記:NLAは何も関係なかった・・・。アクションを用意するだけです

これをAppendで、actionをすべて選択して追加すると以下のようにアクションが利用できるようになります。 imported

これをAsset Searchでできると便利ではないかと思います。

要検討

  1. Rigify版とMMDボーン版の区分が必要  単純にタグでいい?
  2. Import時にActionをFake User設定にするかどうか  すぐに使うとは限らないのでFake Userの方がいい気もしますが、  必要なら再度ImportすればいいのでFake Userなしのほうがいいという考えもあり一長一短ですね

How about adding the ability to Import Blender actions with Asset Search?

Prepare an asset with NLA action set. (Action is set to fake user). ! nla

Add this in Append, selecting all the actions, and the action will be available as shown below. ! imported

I think it would be useful to be able to do this with Asset Search.

Consideration required

  1. need to separate Rigify version and MMD Bone version  simply use tags?
  2. whether or not to set Action to Fake User when importing  I think Fake User would be better, since you don't necessarily use it right away.  or when you need , you can import it again, so it's better without Fake User.
UuuNyaa commented 3 years ago

Thanks for the suggestion.

When you load an MMD motion (.vmd), it generates Action Strips. Is that feature insufficient?

Also, it is good to be able to adjust the scale for loading MMD motions. Is it possible to adjust the scale of the Action Strip when loading it directly from .blend?

listelin commented 3 years ago
  1. use case of this feature I think vmd import is good for applications like dance motion. However, for cases where many short, everyday poses are used, such as walking, crouching, resting, etc., I thought it would be useful to have the ability to import them all at once.

  2. the issue of scale I hadn't thought about this. It is indeed a bit troublesome. Since the scale cannot be changed during Append, we need to change the scale in the Action after Append, as shown below. There is also the issue of how many scales to use at the time of creation, so there should be a rule such as "0.08 is recommended".

https://drive.google.com/file/d/1mVtQbUKzqH45hLeZi4sBFytQE2CCLwJW/view?usp=sharing Run scale_mod.py to change the scale of the sit motion. ( I'm not sure if just resizing the location is enough. This is not confirmed yet.)

Regardless of AssetSearch, it might be useful to have the ability to adjust the scale of actions.

I don't think it's a high priority, but it would be nice to have.


  1. 利用用途 vmdインポートはダンスモーションのような用途ではいいと思います。 しかし、歩く、しゃがむ、休んでいる、などの短い多くの日常的なポーズを利用するようなケースを想定すると、一括してインポートする機能があると便利だと考えました。

  2. スケールの問題 これは考えていませんでした。確かに少し面倒ですね。 スケールはAppend時の変更は無理なため、Appendした後で以下のようにAction内のスケールを変更する必要あります。 (scale_mod.pyを実行すると、sitモーションのスケールが変更されます) *このようにロケーションのサイズ変更だけで十分か?という確認は取れていません

また、作成時のスケールがいくつかという問題もあり、0.08で作成推奨などのルールも必要です https://drive.google.com/file/d/1mVtQbUKzqH45hLeZi4sBFytQE2CCLwJW/view?usp=sharing

AssetSearchとは関係なくアクションのスケール調整機能は、あると便利かもしれません。

優先度が高いわけではないと思いますが、あってもいい、程度ですね。

UuuNyaa commented 3 years ago

Thank you. You're thinking deeply.

I think scaling and rest pose changing are very important in motion reuse. I'll add the Import Action Strips feature when I've solved the scaling and rest pose changing issues.

By the way, I think Asset Manager is better to manage model-specific Action Strips, which is implementing now by the Blender Foundation. https://www.youtube.com/watch?v=tBKZRSmlnG8

I want to make sure that when "Asset Manager" rolls out, our asset search feature will be integrated it.