Area :: Header
Now available for Desktop Subscription customers!
Smoke 2015 Extension 1 brings the LUT Editor and Matchbox to the timeline.
Discussion Groups

Open Reality

Active Contributor
Posts: 35
Registered: ‎08-27-2006

DeviceIONotify interrupted by a change of Parent

39 Views, 0 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?

Please use plain text.