2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

MayaPlugin C++ シーン読み込み後 その他のタイミング コールバック

Last updated at Posted at 2019-10-02

とにかく〇〇した後に実行とかしたい。とかタイミングの取得したい時

この関数をつかってコールバックを登録すると幸せになれます。
MSceneMessage::addCallback(MSceneMessage::kAfterOpen、登録関数);
MSceneMessage::kAfterOpenはシーン開いた後です。
その他のタイミングいっぱいある!
message.png

登録関数はコールバックなのでこういう感じのやつ突っ込んでください。
static void afterExport(void* clientData);

MSceneMessageクラスを使うと良い

2
2
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
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?