Inside Sabertooth
Learn how Sabertooth uses 3ds Max to create 3D interactive projects, including HBO Go’s Game of Thrones interactive experience
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / DeviceIONotify interrupted by a change of Parent
  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: 34
  • 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