Call for Submission
NAB 2012 Best of the Best Show Reel
Submit your work today!
  • 1/3
You are here: Forum Home / Autodesk® MotionBuilder® / Open Reality / FBUserObject not saving
  RSS 2.0 ATOM  

FBUserObject not saving
Rate this thread
 
40131
 
Permlink of this thread   Subscribe to this thread
avatar
  • John McC
  • Posted: 24 February 2010 04:07 PM
  • Location: Sydney, Australia
  • Total Posts: 41
  • Joined: 05 December 2007 04:30 AM

Hi,

I am storing internal data for a plugin via the FBUserObject class. I can create and use the objects fine, except when I reload a saved scene the user objects don’t reappear in the scene - they appear to be missing.

I don’t want to handle the read/writing of my data as our files will pass through teams whom don’t have access to our tools or plugins; I assume saving by external teams will strip any custom data from the file if my plugin isn’t present to write it out.

I was hoping that the FBUserObject would save itself and its properties just like any other node. But it doesn’t appear to do so.

Am I barking up the wrong tree?



Replies: 0
avatar
  • John McC
  • Posted: 24 February 2010 04:34 PM

When browsing the ASCII fbx of the scene, it appears the data is written out, but not read in.

Is this a bug?



Replies: 0
avatar
  • KxL
  • Posted: 24 February 2010 06:12 PM

I think I had similar problems...easy solution is to use FBPhysicalProperty as a base class. Will store/retrieve correctly. To make it appear in different place in Browser you will have to create own FBRegisterPhysicalProperties and modify FBRegisterObject( ClassName##R1,"Browsing/Templates/Physical Properties” ...). Only place which you will not be able to change is Navigator - it will display under Physical Properties.

Hope this helps



Replies: 0
avatar
  • John McC
  • Posted: 24 February 2010 06:44 PM

Thanks for the reply, unfortunately FBPhysicalProperty isn’t present in my version (7.5 ext2). Another complication is that I use the ORSDK for UI and as a launcher for python scripts which do most of the work (we have a lot xml and text parsing in our pipeline). The objects I wish to store the data on are created in python - they could be created in the ORSDK but that would undermine the paradigm a little.

Seems like I might just have to settle for FBModel, I really wish I could avoid polluting the navigator though.

Shouldn’t FBUserObject just work though?



Replies: 0
avatar
  • KxL
  • Posted: 25 February 2010 07:38 PM

I don’t remember exactly what my problem was with FBUserObject storing. Bad is that I don’t have 7.5 to test.

Maybe we need to try different: what kind of data you want to store and when it’s used?

BTW.There is a trick to hide components in navigator, but it’s not exposed fully in python (I talk about FBObjectFlag - in ORSDK you can set kFBFlagBrowsable off).

Cheers



Replies: 0
avatar
  • John McC
  • Posted: 01 March 2010 01:04 PM

I have decided to go along with nulls for the moment. Simply because I realised I also needed some points of reference in my scene and parents for a series of cameras. I can reuse the nulls for that purpose. Interesting point about the browsable flag however.

I can think of a lot of uses for user objects, so it’s unfortunate they don’t load in correctly.



Replies: 0




   
  Settings Choose Theme color: