Your browser does not support iframes.
Tell us what you think of the site.
I would like to know if there is a way to register specific transformation events?
It is possible to add callbacks to FBSystem().Scene that register all the ‘FBSceneChangeType’ events using the ‘OnChange.Add()’ method.
This will register ‘kFBSceneChangeTransactionBegin’ and ‘kFBSceneChangeTransactionEnd’ event types if something is manipulated in the 3d perspective viewer.
There are a number of other interactions that trigger these types of event and I would like to know if a transformation has occurred and ideally which model was involved.
I noticed that there is an FBEventAnimationNodeType class but I have no idea what to add the call back to in order to register occurrences of these types of event.
Cheers for your help,
I can’t see a way of doing this in python. In ORSDK you have few more callbacks. What would be ideal is FBSystem.OnConnectionStateNotify.
As for that animation node event, it’s also something not exposed, in ORSDK there is FBAnimatioNode.OnChange, but I was never able to make it work how I would like to.
These are available in Python as of MotionBuilder 2010.
KRISTINE MIDDLEMISS | ANIMATION TECHNICAL ARTIST
Has anyone gotten the FBAnimationNode.OnChange.Add() to work? I see it in the documentation, but I don’t see it in the application Mobu2012 or Mobu2013.
Traceback (most recent call last):
File "<MotionBuilder>", line 1, in <module>AttributeError: type object 'FBAnimationNode' has no attribute 'OnChange'
In contrast when I inspect something like FBSystem().Scene.OnChange, I see the following:
>>> FBSystem().Scene.OnChange<callbackframework.FBEventSource object at 0x000000001122FC50>
I’m fairly new to Mobu and using Python in it. Any help would be much appreciated.
Ultimately, what I’m specifically after here (if possible) is to detect when keys are modified on the Camera Switcher.
Yep. Looks like a bug in documentation. There is no OnChange attr on FBAnimationNode despite it being listed here: http://download.autodesk.com/global/docs/motionbuildersdk2012/en_US/index.html