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

MotionBuilder OpenRealitySDK HISender

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);
}
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