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.
This page has been translated for your convenience with an automatic translation service. This is not an official translation and may contain errors and inaccurate translations. Autodesk does not warrant, either expressly or implied, the accuracy, reliability or completeness of the information translated by the machine translation service and will not be liable for damages or losses caused by the trust placed in the translation service. To translate this discussion, select the language.

MotionBuilder Forum

Reply
Post 1 of 2

DeviceIONotify interrupted by a change of Parent

115 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?

Thanks
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