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 / Creating Recordable Device Properties
  RSS 2.0 ATOM  

Creating Recordable Device Properties
Rate this thread
 
49224
 
Permlink of this thread  
avatar
  • qdin0
  • Posted: 08 November 2010 07:13 AM
  • Total Posts: 21
  • Joined: 20 September 2007 05:44 PM

Hi guys,

I have an optical device that I’m trying to add animatable / recordable parameters to.

For example, say I am using the optical marker data for facial mocap. I would like my device
to expose higher level properties like eye closure, so I can use it in a relation constraint. And drive a character parameter with it.

I’ve tried a few things:
1. Creating an Out animation node on the device itself. This works to an extent, but when I reload a scene after saving, (a) the connection does not get saved [the node is there, but it is disconnected from its target] , and (b) nor does the data. I suppose I would have to do this manually in FbxStore() and FbxRetrieve(), but I’d much rather do this in a way that has MB do this for me.

2. Creating an animation node on a model template. That is, calling AnimationNodeOutCreate(), and then binding a new model template to this (and of course adding the model template to the ModelTemplate property’s children set). Creating a model binding creates a new model, but the new model does not bear any of the animation nodes when I drag it into the relation view.

3. Creating a property on the model template. Same result as 2.

4. Creating a property on the model binding during ModelTemplateBindNotify().
Same result as 2.

Does anyone know the proper way to go about doing this?

Thanks,

Eric



Replies: 1
/img/forum/dark/default_avatar.png

Hi guys,

I’m a little surprised that no one has responded to this; it seems like a pretty basic thing to do.

Does anyone here know about custom properties that can record to keyframes?

Thanks.

Eric

Author: qdin0

Replied: 16 November 2010 07:23 AM  
avatar

I met the same issue with my custom device.
I am not sure whether I need to add codes in FbxStore/FbxRetrieve, but looks like no other ways.
Can anyone from Mobu dev team give some insights?

Thank you



Eric Feng, Framestore

Replies: 0
avatar

I spent a day adding codes in FbxStore/FbxRetrieve to save/load, custom animation node data and connections of relation constraints for the device.

And… it works. So I guess this is the only way I can think of so far.



Eric Feng, Framestore

Replies: 0
avatar
  • KxL
  • Posted: 20 February 2011 08:56 AM

From what I see you should be able to:

- create animatable property on device (this will store) - see ordeviceskeleton_device (sample in 2011 Adv), there is one property added to device. This will store and all connections should be stored too.

- use ModelTemplateBindNotify( HFBModel pModel,int pIndex, HFBModelTemplate pModelTemplate) to create user animatable property on root model that you bind (just make sure to test if property doesnt exist yet, because if you bind already created models, that property will already exist)

Cheers!



Replies: 0