0
0

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 3 years have passed since last update.

MotionBuilder OpenRealitySDK HISender

Posted at

#OpenRealitySDK HISender

MotionBuilderのコールバック関数は以下のようにHISenderとHKEventをとる

void EventXXXX(HISender pSender, HKEvent pEvent)

HISenderから発火元のコンポーネントの情報を調べる
https://forums.autodesk.com/t5/motionbuilder-forum/how-to-use-interface-callback-s-hisender-psender/td-p/4158488

pSenderからイベントを送ったコンポーネントを取得するには以下のコードで良い。

FBComponent* lComp = FBGetFBComponent( (HIObject) pSender ); 
if (lComp && lComp->Is(FBButton::TypeInfo)) {
 // Do stuff
}

コンポーネントの名前を取得する例

FBComponent* lComp = FBGetFBComponent( (HIObject) pSender );
if (lComp) {
  auto name = FBComponentGetName(lComp);
}
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?