AREA Community - The Largest CG Forum on the Web
MotionBuilder Forum
Welcome to Autodesk’s MotionBuilder Forums. Share your knowledge, ask questions, and explore popular MotionBuilder topics.

MotionBuilder Forum

Post 1 of 2

DeviceIONotify interrupted by a change of Parent

113 Views, 1 Replies
12-30-2011 07:18 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::DeviceIONotify( kDeviceIOs 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?

Post 2 of 2

Re: DeviceIONotify interrupted by a change of Parent

11-12-2015 06:01 AM in reply to: pmsimard_1



  This is an old post, but still may be usefull to someone.

  DeviceIONotify is call for each Frame. If you change the relation between the objects at every frame, MoBu surely gets mixed up (I understand it splits the scene graph into different independent subgraphs --the DAGs -- and evaluates them in paralellel for performance). 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post