AREA forums upgrade
Read more about the planned upgrade of our forums
  • 1/3
You are here: Forum Home / AutodeskĀ® MotionBuilderĀ® / Open Reality / DeviceIONotify interrupted by a change of Parent
IMPORTANT ANNOUNCEMENT ABOUT AREA FORUMS
  RSS 2.0 ATOM  

DeviceIONotify interrupted by a change of Parent
Rate this thread
 
63181
 
Permlink of this thread  
avatar
  • pmsimard
  • Posted: 30 December 2011 02:18 PM
  • Location: Montreal
  • Total Posts: 35
  • Joined: 27 August 2006 02:28 PM

Running this piece of code during the DeviceIONotify event seems to interrupt the code evaluation and return to Mobu as if the process was done and the DeviceIONotify is never called again for that device.

void MyDevice::DeviceIONotifykDeviceIOs pAction,FBDeviceNotifyInfo &pDeviceNotifyInfo)
{
 HFBModel testA 
= new FBModel("TestA");
 
HFBModel testB = new FBModel("TestB");
 
testB->Parent testA//this line interrupt the code evaluation
}

Running these 3 lines sees to work well in the Start() process of the same device. How can I run something like this (I need to create a hierarchy of object parented to each other) based on what happens during the DeviceIONotify evaluation?

Thanks



Replies: 0